diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-08-30 13:17:00 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2011-09-01 13:35:08 +0200 |
commit | 1259c5768e410361bcd8b5cf0c2057a2ebabda83 (patch) | |
tree | 4cb0444f1272506fd0cc788d45fccf601138ef72 /src/declarative/items/qsgmousearea.cpp | |
parent | e4ba808305952dd313b495f20300ec6e2c3801ac (diff) |
Remove the remaining dependencies onto QtWidgets
Change-Id: I49efc4d0af4c19c24515ecfaa5c549e36f442cc8
Reviewed-on: http://codereview.qt.nokia.com/3992
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/declarative/items/qsgmousearea.cpp')
-rw-r--r-- | src/declarative/items/qsgmousearea.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/items/qsgmousearea.cpp b/src/declarative/items/qsgmousearea.cpp index 547df313d2..cae0be60c5 100644 --- a/src/declarative/items/qsgmousearea.cpp +++ b/src/declarative/items/qsgmousearea.cpp @@ -47,6 +47,7 @@ #include <QtGui/qevent.h> #include <QtGui/qguiapplication.h> +#include <QtGui/qstylehints.h> #include <float.h> @@ -760,7 +761,7 @@ void QSGMouseArea::mouseMoveEvent(QMouseEvent *event) curLocalPos = event->windowPos(); } - const int dragThreshold = 20; // ### refactor: QGuiApplication::startDragDistance(); + const int dragThreshold = qApp->styleHints()->startDragDistance(); qreal dx = qAbs(curLocalPos.x() - startLocalPos.x()); qreal dy = qAbs(curLocalPos.y() - startLocalPos.y()); |