Skip to content

Commit 488e365

Browse files
sync: from linuxdeepin/dtkdeclarative
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#523
1 parent eec621a commit 488e365

4 files changed

Lines changed: 36 additions & 2 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// SPDX-FileCopyrightText: 2025 UnionTech Software Technology Co., Ltd.
2+
//
3+
// SPDX-License-Identifier: LGPL-3.0-or-later
4+
5+
import QtQuick 2.0
6+
import QtQuick.Layouts 1.11
7+
import org.deepin.dtk 1.0
8+
9+
Flow {
10+
id: control
11+
Row {
12+
spacing: 20
13+
14+
GroupBox {
15+
title: "GroupBox"
16+
ColumnLayout {
17+
anchors.fill: parent
18+
CheckBox { text: "E-mail" }
19+
CheckBox { text: "Super Fancy Calendar" }
20+
CheckBox { text: "Contacts" }
21+
}
22+
}
23+
24+
GroupBox {
25+
title: "GroupBox 2"
26+
Label {
27+
text: "GroupBox Content"
28+
}
29+
}
30+
}
31+
}

examples/qml-inspect/main.qml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ D.ApplicationWindow {
140140
V2.TabButton {
141141
text: qsTr("Flickable")
142142
}
143+
V2.TabButton {
144+
text: qsTr("GroupBox")
145+
}
143146
}
144147
StackLayout {
145148
anchors.left: parent.left
@@ -159,6 +162,7 @@ D.ApplicationWindow {
159162
Example_Menu {}
160163
Example_Popup {}
161164
Example_Flickable {}
165+
Example_GroupBox {}
162166
}
163167

164168
D.BehindWindowBlur {

examples/qml-inspect/qml.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
<file>Example_Menu.qml</file>
1414
<file>Example_Popup.qml</file>
1515
<file>Example_Flickable.qml</file>
16+
<file>Example_GroupBox.qml</file>
1617
</qresource>
1718
</RCC>

qt6/src/qml/GroupBox.qml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ T.GroupBox {
2626
color: control.palette.windowText
2727
elide: Text.ElideRight
2828
verticalAlignment: Text.AlignLeft
29-
30-
background: Rectangle { }
3129
}
3230

3331
background: Rectangle {

0 commit comments

Comments
 (0)