diff options
author | Frédéric Lefebvre <[email protected]> | 2025-05-12 13:37:18 +0200 |
---|---|---|
committer | Frédéric Lefebvre <[email protected]> | 2025-05-14 19:00:09 +0200 |
commit | 26fc2b4ebffeb10f1506132efb4d0b25bfb41607 (patch) | |
tree | dbf006137902e98b11f74cbcd6f8d40fbe4ed453 | |
parent | 6273e2e0edfc0eba148889158b2d06ad5a6eb0b9 (diff) |
ensurePositionTopLeft - always return true on Android
Due to synchronous position handling, it is not necessary to wait for
event based geometry updates.
Always return true on Android.
Change-Id: Iad1da66e38b2ec1193c5569b4d1764c7202ea319
Reviewed-by: Axel Spoerl <[email protected]>
-rw-r--r-- | src/testlib/qtesthelpers_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testlib/qtesthelpers_p.h b/src/testlib/qtesthelpers_p.h index 100ad8c2f9b..ca4c2981625 100644 --- a/src/testlib/qtesthelpers_p.h +++ b/src/testlib/qtesthelpers_p.h @@ -97,6 +97,9 @@ bool ensurePositionTopLeft(QWindow *window) { const QPoint availableTopLeft = QGuiApplication::primaryScreen()->availableGeometry().topLeft(); window->setFramePosition(availableTopLeft); +#ifdef Q_OS_ANDROID + return true; // Android QPA handles the position change synchronously +#endif bool positionCorrect = true; if (!window->flags().testFlag(Qt::FramelessWindowHint)) |