aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpointerhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/handlers/qquickpointerhandler.cpp')
-rw-r--r--src/quick/handlers/qquickpointerhandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/quick/handlers/qquickpointerhandler.cpp b/src/quick/handlers/qquickpointerhandler.cpp
index 9fc7f45b7c..c5524fc107 100644
--- a/src/quick/handlers/qquickpointerhandler.cpp
+++ b/src/quick/handlers/qquickpointerhandler.cpp
@@ -63,7 +63,12 @@ Q_LOGGING_CATEGORY(lcPointerHandlerActive, "qt.quick.handler.active")
*/
QQuickPointerHandler::QQuickPointerHandler(QQuickItem *parent)
- : QObject(*(new QQuickPointerHandlerPrivate), parent)
+ : QQuickPointerHandler(*(new QQuickPointerHandlerPrivate), parent)
+{
+}
+
+QQuickPointerHandler::QQuickPointerHandler(QQuickPointerHandlerPrivate &dd, QQuickItem *parent)
+ : QObject(dd, parent)
{
// When a handler is created in QML, the given parent is null, and we
// depend on QQuickItemPrivate::data_append() later when it's added to an
@@ -74,11 +79,6 @@ QQuickPointerHandler::QQuickPointerHandler(QQuickItem *parent)
QQuickItemPrivate::get(parent)->addPointerHandler(this);
}
-QQuickPointerHandler::QQuickPointerHandler(QQuickPointerHandlerPrivate &dd, QQuickItem *parent)
- : QObject(dd, parent)
-{
-}
-
QQuickPointerHandler::~QQuickPointerHandler()
{
QQuickItem *parItem = parentItem();