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>
This commit is contained in:
Tor Arne Vestbø 2021-10-14 12:50:36 +02:00
parent 2b6500cd15
commit f572b88899

View File

@ -3583,19 +3583,6 @@ QPoint QWidget::pos() const
resizeEvent(), minimumSize(), maximumSize()
*/
/*!
\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);