summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qsizepolicy.qdoc
diff options
context:
space:
mode:
authorThorbjørn Lund Martsum <tmartsum@gmail.com>2012-08-10 15:24:33 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-10 09:26:31 +0200
commit692e642305e2c24883645bd56db491d031e97252 (patch)
treeb1d5d522b9c50aa4b0bf99e2c2d8f05ac915176c /src/widgets/kernel/qsizepolicy.qdoc
parentc92d1d8acdfb125ce8abfcd996ac151437e6f31d (diff)
QSizePolicy - add retainSizeWhenHidden
Sometimes it is nice that hiding a widget does not affect the layout. This patch makes that possible by allowing hidden widgets to take up space. Change-Id: Ifbc1cdee0e112950acc025919b98199ea9558db7 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com> Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Diffstat (limited to 'src/widgets/kernel/qsizepolicy.qdoc')
-rw-r--r--src/widgets/kernel/qsizepolicy.qdoc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/widgets/kernel/qsizepolicy.qdoc b/src/widgets/kernel/qsizepolicy.qdoc
index 6af694d999..2c088113e1 100644
--- a/src/widgets/kernel/qsizepolicy.qdoc
+++ b/src/widgets/kernel/qsizepolicy.qdoc
@@ -341,6 +341,23 @@
*/
/*!
+ \fn void QSizePolicy::retainSizeWhenHidden() const
+
+ Returns if the layout should retain the widgets size when it is hidden. This is by default false.
+
+ \sa setRetainSizeWhenHidden()
+*/
+
+/*!
+ \fn void QSizePolicy::setRetainSizeWhenHidden(bool retainSize)
+
+ Set if a layout should retain the widgets size when it is hidden.
+ If \a retainSize is true the layout will not be changed by hiding the widget.
+
+ \sa retainSizeWhenHidden()
+*/
+
+/*!
\enum QSizePolicy::ControlType
\since 4.3