aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickdrag.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-04 11:27:27 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-05 10:03:30 +0000
commitadaa3fc546ed831ec69a019c1e0ef48d9e69eb12 (patch)
treedd2f49b2df1a324226f395b42cb4b41f07afd38b /src/quick/items/qquickdrag.cpp
parent4d8b9373c62b9b58c54548f41f1e9d84e9522c6e (diff)
Fix invocations of static methods of QGuiApplication/QCoreApplication.
Change-Id: I7bcc209b0c6e77cf6d974af85a19487345a48975 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
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