aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2021-05-04 10:25:18 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2021-05-05 09:35:31 +0200
commitb9980844a9cc865accc68365bd159283628d68a5 (patch)
tree2b4c0927e57ba4bb0892a158ac17e088fa0e29c8 /src
parentd177233db5d9cb0c51b4985f1c6b16193b7c0bd0 (diff)
Native style: fix up some comments
Change-Id: Id3d3db4b49dcbbc662a24eabb65ac6908577a4af Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/imports/nativestyle/items/qquickstyleitem.h6
1 files changed, 3 insertions, 3 deletions
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;
};