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>
This commit is contained in:
parent
717580c198
commit
099a622281
@ -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;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
x
Reference in New Issue
Block a user