summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/qfunctionconfigurator.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-14 17:24:04 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-14 17:24:04 +0200
commitfbca62b8ef01796127999405b76bbd918c76c69e (patch)
tree0b722e6dd0dc0edde2c4490977a739d2f3798a12 /qfunctionconfigurator/qfunctionconfigurator.h
parentcf5a0fb030e44f616475b9c85115f0eafeecde70 (diff)
throttle QFunctionConfigurator updates
Don't consume whole CPU time when the spline editor control points are being dragged.
Diffstat (limited to 'qfunctionconfigurator/qfunctionconfigurator.h')
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.h b/qfunctionconfigurator/qfunctionconfigurator.h
index d2714ced..fc2a1957 100644
--- a/qfunctionconfigurator/qfunctionconfigurator.h
+++ b/qfunctionconfigurator/qfunctionconfigurator.h
@@ -39,6 +39,7 @@
#include <QtGui>
#include <QtDesigner/QDesignerExportWidget>
#include <QPointF>
+#include <QElapsedTimer>
#include "qfunctionconfigurator/functionconfig.h"
#include "ftnoir_tracker_base/ftnoir_tracker_base.h"
@@ -171,6 +172,7 @@ private:
QPointF graphicalizePoint (QPointF point) const; // Convert the Point to a graphical Point
int movingPoint;
+ QElapsedTimer timer;
int MaxInput; // Maximum input limit
int MaxOutput; // Maximum output limit