From 7c65f4f7e6167b868e3357d85dabe19e68f3c1b6 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 20 Apr 2017 13:47:03 +0200 Subject: 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 --- src/quicktemplates2/qquickdrawer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quicktemplates2/qquickdrawer.cpp') 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; -- cgit v1.2.3