summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiwei Li <daiweili@suitabletech.com>2015-01-08 16:10:45 -0800
committerDaiwei Li <daiweili@suitabletech.com>2015-01-28 03:26:39 +0000
commitf6a02e54558acd565d4ee134ba6d96b44e258919 (patch)
treec147920788f75586b0aa59908966340fea1d7f08
parente79b147e37a7af969e5d084056d9ce35d233e4dd (diff)
downloadqtquickcontrols-f6a02e54558acd565d4ee134ba6d96b44e258919.tar.gz
Use a RowLayout in the base CheckBoxStyle panel
This makes it easier to get the label to wrap when using a CheckBox in a Layout Change-Id: Ib6bb1207da01244d020833df57c18d4392ed73d1 Reviewed-by: Jens Bache-Wiig <jensbw@gmail.com>
-rw-r--r--src/controls/Styles/Base/CheckBoxStyle.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/controls/Styles/Base/CheckBoxStyle.qml b/src/controls/Styles/Base/CheckBoxStyle.qml
index 6fbdaede..e89e862a 100644
--- a/src/controls/Styles/Base/CheckBoxStyle.qml
+++ b/src/controls/Styles/Base/CheckBoxStyle.qml
@@ -39,6 +39,7 @@
****************************************************************************/
import QtQuick 2.2
import QtQuick.Controls 1.2
+import QtQuick.Layouts 1.1
import QtQuick.Window 2.1
import QtQuick.Controls.Private 1.0
@@ -168,7 +169,7 @@ Style {
sourceComponent: background
anchors.fill: parent
}
- Row {
+ RowLayout {
id: row
anchors.fill: parent
@@ -185,6 +186,7 @@ Style {
}
Loader {
id: labelLoader
+ Layout.fillWidth: true
sourceComponent: label
anchors.verticalCenter: parent.verticalCenter
}