diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-14 17:27:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-14 17:27:00 +0200 |
commit | 14f9db1312149fcf391c95e9c6cadbc6bdaaf7cc (patch) | |
tree | 5e91156c0052306412ff2c05129b051a853b62ae /qfunctionconfigurator | |
parent | fbca62b8ef01796127999405b76bbd918c76c69e (diff) |
QFC: Don't throttle as much, it's jerky
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.cpp | 3 |
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()); |