aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickdrag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/items/qquickdrag.cpp')
-rw-r--r--src/quick/items/qquickdrag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/qquickdrag.cpp b/src/quick/items/qquickdrag.cpp
index 7ce649c7eb..64e46d1762 100644
--- a/src/quick/items/qquickdrag.cpp
+++ b/src/quick/items/qquickdrag.cpp
@@ -784,7 +784,7 @@ void QQuickDragAttached::startDrag(QQmlV4Function *args)
QQuickDrag::QQuickDrag(QObject *parent)
: QObject(parent), _target(0), _axis(XAndYAxis), _xmin(-FLT_MAX),
_xmax(FLT_MAX), _ymin(-FLT_MAX), _ymax(FLT_MAX), _active(false), _filterChildren(false),
- _smoothed(true), _threshold(qApp->styleHints()->startDragDistance())
+ _smoothed(true), _threshold(QGuiApplication::styleHints()->startDragDistance())
{
}
@@ -906,7 +906,7 @@ void QQuickDrag::setThreshold(qreal value)
void QQuickDrag::resetThreshold()
{
- setThreshold(qApp->styleHints()->startDragDistance());
+ setThreshold(QGuiApplication::styleHints()->startDragDistance());
}
bool QQuickDrag::active() const