summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/qfunctionconfigurator.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-14 17:27:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-14 17:27:00 +0200
commit14f9db1312149fcf391c95e9c6cadbc6bdaaf7cc (patch)
tree5e91156c0052306412ff2c05129b051a853b62ae /qfunctionconfigurator/qfunctionconfigurator.cpp
parentfbca62b8ef01796127999405b76bbd918c76c69e (diff)
QFC: Don't throttle as much, it's jerky
Diffstat (limited to 'qfunctionconfigurator/qfunctionconfigurator.cpp')
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp
index 76245de4..79c5f949 100644
--- a/qfunctionconfigurator/qfunctionconfigurator.cpp
+++ b/qfunctionconfigurator/qfunctionconfigurator.cpp
@@ -447,11 +447,12 @@ void QFunctionConfigurator::mousePressEvent(QMouseEvent *e)
void QFunctionConfigurator::mouseMoveEvent(QMouseEvent *e)
{
QList<QPointF> points = _config->getPoints();
+ const int refresh_delay = 50;
if (movingPoint >= 0 && movingPoint < points.size()) {
setCursor(Qt::ClosedHandCursor);
- if (timer.isValid() && timer.elapsed() > 100)
+ if (timer.isValid() && timer.elapsed() > refresh_delay)
{
timer.restart();
QPointF new_pt = normalizePoint(e->pos());