From cd47d9179ffc90cafd4248b6e11eb9fe3a9dc2ec Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Tue, 29 Sep 2026 14:46:54 +0200 Subject: StyleKitProperties: give pointSize a non-zero default size Text elements write out a warning if the pointSize is set to 0. And when using StyleKit, this can happen if the property is evaluated before the Style and Theme has finished loading (and then it will be corrected). To avoid such a warning, return the default pointSize until the Style and Theme is ready. Pick-to: 6.12 Change-Id: I1fd5db7e350cbdc1ddcd5e1ee53db90e94941c4f Reviewed-by: Doris Verria --- src/labs/stylekit/qqstylekitcontrolproperties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/labs/stylekit/qqstylekitcontrolproperties.cpp b/src/labs/stylekit/qqstylekitcontrolproperties.cpp index 4874300f55..66149a4f9a 100644 --- a/src/labs/stylekit/qqstylekitcontrolproperties.cpp +++ b/src/labs/stylekit/qqstylekitcontrolproperties.cpp @@ -1895,7 +1895,7 @@ void QQStyleKitTextProperties::setItalic(bool italic) qreal QQStyleKitTextProperties::pointSize() const { - return styleProperty(QQSK::Property::PointSize); + return styleProperty(QQSK::Property::PointSize, QFont().pointSize()); } void QQStyleKitTextProperties::setPointSize(qreal pointSize) -- cgit v1.2.3