diff options
author | Daiwei Li <daiweili@suitabletech.com> | 2015-01-08 16:10:45 -0800 |
---|---|---|
committer | Daiwei Li <daiweili@suitabletech.com> | 2015-01-28 03:26:39 +0000 |
commit | f6a02e54558acd565d4ee134ba6d96b44e258919 (patch) | |
tree | c147920788f75586b0aa59908966340fea1d7f08 /src/controls/Styles/Base | |
parent | e79b147e37a7af969e5d084056d9ce35d233e4dd (diff) | |
download | qtquickcontrols-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>
Diffstat (limited to 'src/controls/Styles/Base')
-rw-r--r-- | src/controls/Styles/Base/CheckBoxStyle.qml | 4 |
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 } |