diff options
| author | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-06-25 12:10:11 -0700 |
|---|---|---|
| committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-07-01 20:50:42 +0000 |
| commit | 099a622281cd403dddc9e581cedccfac5fd1160b (patch) | |
| tree | 775d98bd0ebd5e828250461196483f9de7b05b89 /src/widgets/kernel/qwidget.cpp | |
| parent | 717580c1985dd0804363bafb8822f82dacfb3f90 (diff) | |
Remove unused qt_pressGrab in qwidget.cpp
I can't find evidence that it has been anything other than nullptr
since the 2011 "Qt by Nokia" commit at least.
Change-Id: I191f35b1fc8ca06c5c28696fed5c44f1e8c30f59
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/kernel/qwidget.cpp')
| -rw-r--r-- | src/widgets/kernel/qwidget.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 33fd9bfe4b4..540a8930493 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -12684,7 +12684,6 @@ QPoint QWidget::mapFromGlobal(const QPoint &pos) const return mapFromGlobal(QPointF(pos)).toPoint(); } -QWidget *qt_pressGrab = nullptr; QWidget *qt_mouseGrb = nullptr; static bool mouseGrabWithCursor = false; static QWidget *keyboardGrb = nullptr; @@ -12719,7 +12718,6 @@ static void grabMouseForWidget(QWidget *widget) } qt_mouseGrb = widget; - qt_pressGrab = nullptr; } static void releaseMouseGrabOfWidget(QWidget *widget) @@ -12880,9 +12878,7 @@ void QWidget::releaseKeyboard() */ QWidget *QWidget::mouseGrabber() { - if (qt_mouseGrb) - return qt_mouseGrb; - return qt_pressGrab; + return qt_mouseGrb; } /*! |
