diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-04-20 13:47:03 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-04-21 08:35:07 +0000 |
commit | 7c65f4f7e6167b868e3357d85dabe19e68f3c1b6 (patch) | |
tree | d53bbb1959214d0e2b95dfce0eb979dff8f11139 /src/quicktemplates2/qquickdrawer.cpp | |
parent | be10b714ca2233e3312383a91e6d33da31176ae1 (diff) |
QQuickDrawerPrivate::startDrag(): remove superfluous argument
Popups used to have a valid window-pointer only when they were visible,
but now the window is automatically looked up from the parent item.
There is no need to pass the window pointer from the overlay anymore,
because the drawer already knows the window.
Change-Id: I9652607217a82af2be89f6ab4490431556e3d17c
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickdrawer.cpp')
-rw-r--r-- | src/quicktemplates2/qquickdrawer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickdrawer.cpp b/src/quicktemplates2/qquickdrawer.cpp index a149eb54..e848c160 100644 --- a/src/quicktemplates2/qquickdrawer.cpp +++ b/src/quicktemplates2/qquickdrawer.cpp @@ -239,7 +239,7 @@ static bool dragOverThreshold(qreal d, Qt::Axis axis, QMouseEvent *event, int th return QQuickWindowPrivate::dragOverThreshold(d, axis, event, threshold); } -bool QQuickDrawerPrivate::startDrag(QQuickWindow *window, QMouseEvent *event) +bool QQuickDrawerPrivate::startDrag(QMouseEvent *event) { if (!window || !interactive || dragMargin < 0.0 || qFuzzyIsNull(dragMargin)) return false; |