aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@qt.io>2017-02-21 15:32:58 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2017-02-21 15:28:45 +0000
commitfcfaaa12278efd3e306841b2c77d4be0247bfbd3 (patch)
tree2e6f52cf30b29c12ada053dd649a3c04b522487d /src/quick/handlers
parent507efe5a8a2390813fb620a91b0b3b6b383f599d (diff)
Make all handler constructors explicit
Change-Id: I17b3865d70bdc07912d7454b459dea40b9c98df0 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/handlers')
-rw-r--r--src/quick/handlers/qquickdraghandler_p.h2
-rw-r--r--src/quick/handlers/qquickmultipointerhandler_p.h2
-rw-r--r--src/quick/handlers/qquickpinchhandler_p.h2
-rw-r--r--src/quick/handlers/qquickpointerdevicehandler_p.h2
-rw-r--r--src/quick/handlers/qquickpointerhandler_p.h2
-rw-r--r--src/quick/handlers/qquickpointersinglehandler_p.h2
-rw-r--r--src/quick/handlers/qquicktaphandler_p.h2
7 files changed, 7 insertions, 7 deletions
diff --git a/src/quick/handlers/qquickdraghandler_p.h b/src/quick/handlers/qquickdraghandler_p.h
index 6250615091..cfccc19115 100644
--- a/src/quick/handlers/qquickdraghandler_p.h
+++ b/src/quick/handlers/qquickdraghandler_p.h
@@ -93,7 +93,7 @@ class Q_AUTOTEST_EXPORT QQuickDragHandler : public QQuickPointerSingleHandler
Q_PROPERTY(QPointF translation READ translation NOTIFY translationChanged)
public:
- QQuickDragHandler(QObject *parent = 0);
+ explicit QQuickDragHandler(QObject *parent = 0);
~QQuickDragHandler();
void handleEventPoint(QQuickEventPoint *point) override;
diff --git a/src/quick/handlers/qquickmultipointerhandler_p.h b/src/quick/handlers/qquickmultipointerhandler_p.h
index 2a23a14f8a..d6d660ec04 100644
--- a/src/quick/handlers/qquickmultipointerhandler_p.h
+++ b/src/quick/handlers/qquickmultipointerhandler_p.h
@@ -65,7 +65,7 @@ class Q_AUTOTEST_EXPORT QQuickMultiPointerHandler : public QQuickPointerDeviceHa
Q_PROPERTY(qreal pointDistanceThreshold READ pointDistanceThreshold WRITE setPointDistanceThreshold NOTIFY pointDistanceThresholdChanged)
public:
- QQuickMultiPointerHandler(QObject *parent = 0, int requiredPointCount = 2);
+ explicit QQuickMultiPointerHandler(QObject *parent = 0, int requiredPointCount = 2);
~QQuickMultiPointerHandler();
int requiredPointCount() const { return m_requiredPointCount; }
diff --git a/src/quick/handlers/qquickpinchhandler_p.h b/src/quick/handlers/qquickpinchhandler_p.h
index 0861368682..d788e2cb36 100644
--- a/src/quick/handlers/qquickpinchhandler_p.h
+++ b/src/quick/handlers/qquickpinchhandler_p.h
@@ -81,7 +81,7 @@ public:
};
Q_ENUM(PinchOrigin)
- QQuickPinchHandler(QObject *parent = 0);
+ explicit QQuickPinchHandler(QObject *parent = 0);
~QQuickPinchHandler();
qreal minimumScale() const { return m_minimumScale; }
diff --git a/src/quick/handlers/qquickpointerdevicehandler_p.h b/src/quick/handlers/qquickpointerdevicehandler_p.h
index 2e126381b0..2ca7310da8 100644
--- a/src/quick/handlers/qquickpointerdevicehandler_p.h
+++ b/src/quick/handlers/qquickpointerdevicehandler_p.h
@@ -63,7 +63,7 @@ class Q_AUTOTEST_EXPORT QQuickPointerDeviceHandler : public QQuickPointerHandler
Q_PROPERTY(Qt::MouseButtons acceptedButtons READ acceptedButtons WRITE setAcceptedButtons NOTIFY acceptedButtonsChanged)
public:
- QQuickPointerDeviceHandler(QObject *parent = 0);
+ explicit QQuickPointerDeviceHandler(QObject *parent = 0);
~QQuickPointerDeviceHandler();
QQuickPointerDevice::DeviceTypes acceptedDevices() const { return m_acceptedDevices; }
diff --git a/src/quick/handlers/qquickpointerhandler_p.h b/src/quick/handlers/qquickpointerhandler_p.h
index 715000114e..b5da8cba1f 100644
--- a/src/quick/handlers/qquickpointerhandler_p.h
+++ b/src/quick/handlers/qquickpointerhandler_p.h
@@ -69,7 +69,7 @@ class Q_QUICK_PRIVATE_EXPORT QQuickPointerHandler : public QObject
Q_PROPERTY(QQuickItem * parent READ parentItem CONSTANT)
public:
- QQuickPointerHandler(QObject *parent = 0);
+ explicit QQuickPointerHandler(QObject *parent = 0);
virtual ~QQuickPointerHandler();
public:
diff --git a/src/quick/handlers/qquickpointersinglehandler_p.h b/src/quick/handlers/qquickpointersinglehandler_p.h
index ca907e7489..a82ec72ad6 100644
--- a/src/quick/handlers/qquickpointersinglehandler_p.h
+++ b/src/quick/handlers/qquickpointersinglehandler_p.h
@@ -72,7 +72,7 @@ class Q_QUICK_PRIVATE_EXPORT QQuickPointerSingleHandler : public QQuickPointerDe
Q_PROPERTY(QSizeF ellipseDiameters READ ellipseDiameters NOTIFY eventPointHandled)
public:
- QQuickPointerSingleHandler(QObject *parent = 0);
+ explicit QQuickPointerSingleHandler(QObject *parent = 0);
virtual ~QQuickPointerSingleHandler() { }
Qt::MouseButtons pressedButtons() const { return m_pressedButtons; }
diff --git a/src/quick/handlers/qquicktaphandler_p.h b/src/quick/handlers/qquicktaphandler_p.h
index 5956a7f185..115effa3f7 100644
--- a/src/quick/handlers/qquicktaphandler_p.h
+++ b/src/quick/handlers/qquicktaphandler_p.h
@@ -75,7 +75,7 @@ public:
};
Q_ENUM(GesturePolicy)
- QQuickTapHandler(QObject *parent = 0);
+ explicit QQuickTapHandler(QObject *parent = 0);
~QQuickTapHandler();
bool wantsEventPoint(QQuickEventPoint *point) override;