aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickswitchdelegate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2/qquickswitchdelegate.cpp')
-rw-r--r--src/quicktemplates2/qquickswitchdelegate.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/quicktemplates2/qquickswitchdelegate.cpp b/src/quicktemplates2/qquickswitchdelegate.cpp
index 3ba859f5..765525fb 100644
--- a/src/quicktemplates2/qquickswitchdelegate.cpp
+++ b/src/quicktemplates2/qquickswitchdelegate.cpp
@@ -79,15 +79,13 @@ class QQuickSwitchDelegatePrivate : public QQuickItemDelegatePrivate
Q_DECLARE_PUBLIC(QQuickSwitchDelegate)
public:
- QQuickSwitchDelegatePrivate() : position(0) { }
-
qreal positionAt(const QPointF &point) const;
bool canDrag(const QPointF &movePoint) const;
void handleMove(const QPointF &point) override;
void handleRelease(const QPointF &point) override;
- qreal position;
+ qreal position = 0;
};
qreal QQuickSwitchDelegatePrivate::positionAt(const QPointF &point) const