diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-29 10:10:53 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-05-02 20:51:05 +0000 |
commit | 00d2861f7447d0673bffb1f964e71bb5792b8312 (patch) | |
tree | 6969297e93f0fe00b7f344ae43130ab59872c5e9 /src/quicktemplates2/qquickdrawer_p_p.h | |
parent | c0ef03934632ebe897d8c2ebee2f9af53e168ed8 (diff) |
Add QQuickDrawerPrivate::offsetAt()
Share the duplicated logic in grabMouse() and grabTouch().
Change-Id: If53dd5dd4302009594548e94bcc5f95b352e1bf6
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickdrawer_p_p.h')
-rw-r--r-- | src/quicktemplates2/qquickdrawer_p_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickdrawer_p_p.h b/src/quicktemplates2/qquickdrawer_p_p.h index bfa97fb1..bc4f91eb 100644 --- a/src/quicktemplates2/qquickdrawer_p_p.h +++ b/src/quicktemplates2/qquickdrawer_p_p.h @@ -66,7 +66,9 @@ public: return drawer->d_func(); } + qreal offsetAt(const QPointF &point) const; qreal positionAt(const QPointF &point) const; + void reposition() override; void resizeOverlay() override; |