From b9980844a9cc865accc68365bd159283628d68a5 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Tue, 4 May 2021 10:25:18 +0200 Subject: Native style: fix up some comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id3d3db4b49dcbbc662a24eabb65ac6908577a4af Reviewed-by: Jan Arve Sæther --- src/imports/nativestyle/items/qquickstyleitem.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/imports/nativestyle/items/qquickstyleitem.h b/src/imports/nativestyle/items/qquickstyleitem.h index 3148cc7c..3b87faf6 100644 --- a/src/imports/nativestyle/items/qquickstyleitem.h +++ b/src/imports/nativestyle/items/qquickstyleitem.h @@ -111,7 +111,7 @@ QDebug operator<<(QDebug debug, const QQuickStyleMargins &padding); struct StyleItemGeometry { /* - A QQuickItem is responsible for drawing a control, or a part of it. + A QQuickStyleItem is responsible for drawing a control, or a part of it. 'minimumSize' should be the minimum possible size that the item can have _without_ taking content size into consideration (and still render @@ -121,7 +121,7 @@ struct StyleItemGeometry (which is set from QML, and will typically be the same as the size of the control). The default way to calculate minimumSize is to call style()->sizeFromContents() with an empty content size. This is not always well supported by the legacy QStyle - implementations, which means that you might e.g get an empty size in return). + implementation, which means that you might e.g get an empty size in return. For those cases, the correct solution is to go into the specific platform style and change it so that it returns a valid size also for this special case. @@ -146,7 +146,7 @@ struct StyleItemGeometry QSize minimumSize; QSize implicitSize; QRect contentRect; - QRect layoutRect; //If invalid, there are no layout margins! + QRect layoutRect; // If invalid, there are no layout margins! QMargins ninePatchMargins; qreal focusFrameRadius; }; -- cgit v1.2.3