Revert "Fixed duplicate QMoveEvent generated for each QWidget::move call"
A better fix is to check whether the widget already has the requested
geometry when receiving the spontaneous event from the platform in
QWidgetWindow and to suppress that.
This reverts commit 72259baa76.
Task-number: QTBUG-32590
Change-Id: I4d7a9b4c340c2d6a427727ecb8de50c3d199f7a9
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
bb10
parent
c3baa7c1dc
commit
c3e416296a
|
|
@ -779,10 +779,7 @@ void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove)
|
|||
}
|
||||
}
|
||||
|
||||
// generate a move event for QWidgets without window handles. QWidgets with native
|
||||
// window handles already receive a move event from
|
||||
// QGuiApplicationPrivate::processGeometryChangeEvent.
|
||||
if (isMove && (!q->windowHandle() || q->testAttribute(Qt::WA_DontShowOnScreen))) {
|
||||
if (isMove) {
|
||||
QMoveEvent e(q->pos(), oldPos);
|
||||
QApplication::sendEvent(q, &e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue