summaryrefslogtreecommitdiff
path: root/src/controls/GroupBox.qml
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2013-03-08 11:31:54 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-11 09:14:42 +0100
commit6b10d5f60bf11610cbff5d2a59b5826a1459285f (patch)
tree45b417e465862ef98b86cb50ee697fe4f17e981b /src/controls/GroupBox.qml
parentf2e33400bdd0515da95ddf864947cdbff3cbcfd7 (diff)
downloadqtquickcontrols-6b10d5f60bf11610cbff5d2a59b5826a1459285f.tar.gz
Doc - GroupBox: Update documentation
And remove a useless property. Change-Id: I970eb1164aab45142b336008fa5981cfb680dc91 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/controls/GroupBox.qml')
-rw-r--r--src/controls/GroupBox.qml22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/controls/GroupBox.qml b/src/controls/GroupBox.qml
index 7079dbd7..e7cf4864 100644
--- a/src/controls/GroupBox.qml
+++ b/src/controls/GroupBox.qml
@@ -60,21 +60,24 @@ import "Styles/Settings.js" as Settings
\qml
GroupBox {
- title: "Package selection"
- adjustToContentSize: true
+ title: qsTr("Package selection")
Column {
CheckBox {
- text: "Update system"
+ text: qsTr("Update system")
}
CheckBox {
- text: "Update applications"
+ text: qsTr("Update applications")
}
CheckBox {
- text: "Update documentation"
+ text: qsTr("Update documentation")
}
}
}
\endqml
+
+ \note The default size of the GroupBox is calculated based on the size of its children. If you need to use anchors
+ inside a GroupBox, it is recommended to specify a width and height to the GroupBox or to add an intermediate Item
+ inside the GroupBox.
*/
Item {
@@ -133,15 +136,6 @@ Item {
*/
readonly property real contentHeight: content.childrenRect.height
- /*!
- This property holds whether the group box resizes itself to fit the contents.
-
- By default, group boxes do not resize itself to fit the contents.
-
- \note When adjustToContentSize is enabled, children cannot be anchored.
- */
- property bool adjustToContentSize: false
-
/*! \internal */
property Component style: Qt.createComponent(Settings.THEME_PATH + "/GroupBoxStyle.qml", groupbox)