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 72259baa76a0f1faa1983c720621676e9c15e15f. Task-number: QTBUG-32590 Change-Id: I4d7a9b4c340c2d6a427727ecb8de50c3d199f7a9 Reviewed-by: Andy Shaw <andy.shaw@digia.com>
This commit is contained in:
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
|
if (isMove) {
|
||||||
// window handles already receive a move event from
|
|
||||||
// QGuiApplicationPrivate::processGeometryChangeEvent.
|
|
||||||
if (isMove && (!q->windowHandle() || q->testAttribute(Qt::WA_DontShowOnScreen))) {
|
|
||||||
QMoveEvent e(q->pos(), oldPos);
|
QMoveEvent e(q->pos(), oldPos);
|
||||||
QApplication::sendEvent(q, &e);
|
QApplication::sendEvent(q, &e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user