From f6a02e54558acd565d4ee134ba6d96b44e258919 Mon Sep 17 00:00:00 2001 From: Daiwei Li Date: Thu, 8 Jan 2015 16:10:45 -0800 Subject: 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 --- src/controls/Styles/Base/CheckBoxStyle.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.1