diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-09-19 16:39:41 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-09-19 16:37:11 +0000 |
commit | b3983692680a91023dc5f22608b4e84b46fae883 (patch) | |
tree | 6f25d5f3f84deabab3aacefd03fef020a196af96 /src/quicktemplates2/qquickswitchdelegate_p.h | |
parent | 6ed4918f131ff235bcab3efe849f5b67406ef350 (diff) |
QQuickSwitchDelegate: make the handle draggable
Sync the implementation with QQuickSwitch to make it behave exactly
the same way.
Change-Id: I59d08f68f87d8776e4012da880ac57a99950dfe8
Task-number: QTBUG-55686
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickswitchdelegate_p.h')
-rw-r--r-- | src/quicktemplates2/qquickswitchdelegate_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickswitchdelegate_p.h b/src/quicktemplates2/qquickswitchdelegate_p.h index 5126f643..c0cc21ac 100644 --- a/src/quicktemplates2/qquickswitchdelegate_p.h +++ b/src/quicktemplates2/qquickswitchdelegate_p.h @@ -73,9 +73,16 @@ Q_SIGNALS: void visualPositionChanged(); protected: + void mousePressEvent(QMouseEvent *event) override; + void mouseMoveEvent(QMouseEvent *event) override; + void mouseReleaseEvent(QMouseEvent *event) override; + QFont defaultFont() const override; void mirrorChange() override; + void nextCheckState() override; + void checkStateSet() override; + private: Q_DISABLE_COPY(QQuickSwitchDelegate) Q_DECLARE_PRIVATE(QQuickSwitchDelegate) |