summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-10-14 12:50:36 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2021-10-15 18:14:25 +0200
commitf572b888994d0f5dee5bf4c12dfeb9edcce2f5dd (patch)
treebcb3b32a774abeb9608402d3207951ce611b0fcb
parent2b6500cd15c0a41cf3e5eea8178e2044012dbd97 (diff)
Clarify QWidget::normalGeometry documentation
The property reflects the widget's current geometry if it is not in a full screen or maximized state. Pick-to: 6.2 Change-Id: I5816687119500995654a926aef952d788ad74886 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
-rw-r--r--src/widgets/kernel/qwidget.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
index d5a0e92fac..0fe0029d67 100644
--- a/src/widgets/kernel/qwidget.cpp
+++ b/src/widgets/kernel/qwidget.cpp
@@ -3584,19 +3584,6 @@ QPoint QWidget::pos() const
*/
/*!
- \property QWidget::normalGeometry
-
- \brief the geometry of the widget as it will appear when shown as
- a normal (not maximized or full screen) top-level widget
-
- For child widgets this property always holds an empty rectangle.
-
- By default, this property contains an empty rectangle.
-
- \sa QWidget::windowState(), QWidget::geometry
-*/
-
-/*!
\property QWidget::size
\brief the size of the widget excluding any window frame
@@ -3664,7 +3651,21 @@ QPoint QWidget::pos() const
\sa size
*/
+/*!
+ \property QWidget::normalGeometry
+
+ \brief the geometry of the widget as it will appear when shown as
+ a normal (not maximized or full screen) top-level widget
+
+ If the widget is already in this state the normal geometry will
+ reflect the widget's current geometry().
+ For child widgets this property always holds an empty rectangle.
+
+ By default, this property contains an empty rectangle.
+
+ \sa QWidget::windowState(), QWidget::geometry
+*/
QRect QWidget::normalGeometry() const
{
Q_D(const QWidget);