summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-10-23 17:25:07 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-24 14:52:55 +0200
commit47920bdd6e1de83f1ac5c3b64a0e766e96730f34 (patch)
tree383bd9678bf56be7075f7be80fd2c23c4352c042 /examples
parent9815d667a8e125904723d3ecedb42128c90f8d8e (diff)
downloadqtquickcontrols-47920bdd6e1de83f1ac5c3b64a0e766e96730f34.tar.gz
Don't add any extra space to RadioButton and CheckBox by default
We instead do this in the layout code. It seems to make sense to support the use case where only the indicator is visible without adding extra padding to it. Change-Id: Ib55c3a97d7c23a52a14121b46be84299d1ad2132 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/controls/gallery/content/Controls.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/quick/controls/gallery/content/Controls.qml b/examples/quick/controls/gallery/content/Controls.qml
index f13b9fda..f5bc1c3e 100644
--- a/examples/quick/controls/gallery/content/Controls.qml
+++ b/examples/quick/controls/gallery/content/Controls.qml
@@ -169,20 +169,24 @@ Item {
title: "CheckBox"
Layout.fillWidth: true
RowLayout {
+ Layout.fillWidth: true
CheckBox {
id: frameCheckbox
text: "Text frame"
checked: true
+ Layout.minimumWidth: 100
}
CheckBox {
id: tickmarkCheck
text: "Tickmarks"
checked: false
+ Layout.minimumWidth: 100
}
CheckBox {
id: wrapCheck
text: "Word wrap"
checked: true
+ Layout.minimumWidth: 100
}
}
}
@@ -197,11 +201,13 @@ Item {
text: "Top"
checked: true
exclusiveGroup: tabPositionGroup
+ Layout.minimumWidth: 100
}
RadioButton {
id: r2
text: "Bottom"
exclusiveGroup: tabPositionGroup
+ Layout.minimumWidth: 100
}
}
}