diff options
| author | Caroline Chao <caroline.chao@digia.com> | 2013-02-21 12:49:44 +0100 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-25 18:58:20 +0100 |
| commit | 10de49ee578e4aeba51b36c59c52811c1dad620c (patch) | |
| tree | f83e52696b38405f0f22270c878ade5dab2865e8 | |
| parent | de83078a3ab131dd22ef084843e275b62d0e67bc (diff) | |
GroupBox: Add title to checkable group box
Change-Id: I66d9916e1a66b9d6a1a3dd94aba84c37022824ae
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
| -rw-r--r-- | src/controls/GroupBox.qml | 1 | ||||
| -rw-r--r-- | src/styles/Desktop/GroupBoxStyle.qml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/controls/GroupBox.qml b/src/controls/GroupBox.qml index 5fe37c9ea..75da57e56 100644 --- a/src/controls/GroupBox.qml +++ b/src/controls/GroupBox.qml @@ -172,6 +172,7 @@ Item { CheckBox { id: check checked: true + text: groupbox.title visible: checkable anchors.top: parent.top anchors.left: parent.left diff --git a/src/styles/Desktop/GroupBoxStyle.qml b/src/styles/Desktop/GroupBoxStyle.qml index 06e0ad6ee..281daf984 100644 --- a/src/styles/Desktop/GroupBoxStyle.qml +++ b/src/styles/Desktop/GroupBoxStyle.qml @@ -44,7 +44,7 @@ import QtQuick.Controls.Private 1.0 StyleItem { id: styleitem elementType: "groupbox" - text: control.title + text: control.checkable? "" : control.title on: control.checked hasFocus: control.activeFocus activeControl: checkable ? "checkbox" : "" |
