aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Arve Sæther <jan-arve.saether@qt.io>2021-08-23 15:23:56 +0200
committerJan Arve Sæther <jan-arve.saether@qt.io>2021-08-27 09:34:32 +0200
commita20a80e7f991e56b244e3d89e4b50650dc90fdb9 (patch)
tree5521cb8347e4bed46a7bcb095eddd3b4484007a3
parenta641e8ef74b8f2ad9dea03bdb7cc8c7c3c70e75e (diff)
Make sure implicitWidth/Height is valid when component is completed
This makes controls have their correct initial sizes without having to wait for polish(). This fixes ~80 test failures in native windows style Task-number: QTBUG-95679 Pick-to: 6.1 6.2 Change-Id: I0711ace1e95e84128b66df22e52001b340eea8a9 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 1b66b7727272ec28f31a1672032346792350b5b7 in qtdeclarative module)
-rw-r--r--src/imports/nativestyle/items/qquickstyleitem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/nativestyle/items/qquickstyleitem.cpp b/src/imports/nativestyle/items/qquickstyleitem.cpp
index ec041d01..7ff0a577 100644
--- a/src/imports/nativestyle/items/qquickstyleitem.cpp
+++ b/src/imports/nativestyle/items/qquickstyleitem.cpp
@@ -471,6 +471,7 @@ void QQuickStyleItem::componentComplete()
addDebugInfo();
#endif
QQuickItem::componentComplete();
+ updateGeometry();
connectToControl();
polish();
}