summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-07-16 06:51:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-07-16 06:51:14 +0200
commit2da709f686124722ac769f7a884eb260fd80c545 (patch)
tree6f61aec72188bd27f3b123540218f745157ad352
parente78dc4e0f77d21a1fc8379e5e8a09f4723522e36 (diff)
Allow for removing all control points at once
-rw-r--r--qfunctionconfigurator/functionconfig.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qfunctionconfigurator/functionconfig.h b/qfunctionconfigurator/functionconfig.h
index 0e87c4c8..0f60c979 100644
--- a/qfunctionconfigurator/functionconfig.h
+++ b/qfunctionconfigurator/functionconfig.h
@@ -47,6 +47,12 @@ public:
// Functions to manipulate the Function
//
void removePoint(int i);
+ void removeAllPoints() {
+ QMutexLocker foo(_mutex);
+ _points.clear();
+ reload();
+ }
+
void addPoint(QPointF pt);
void movePoint(int idx, QPointF pt);
QList<QPointF> getPoints();