File tree 2 files changed +26
-9
lines changed
2 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Firebird.UIComponents 1.0
6
6
Rectangle {
7
7
property alias icon: image .source
8
8
property alias title: label .text
9
+ property alias subtitle: subtitleLabel .text
9
10
property alias borderTopVisible: borderTop .visible
10
11
property alias borderBottomVisible: borderBottom .visible
11
12
property bool disabled: false
@@ -76,19 +77,34 @@ Rectangle {
76
77
fillMode: Image .PreserveAspectFit
77
78
}
78
79
79
- FBLabel {
80
- id: label
81
-
82
- color: " black"
83
-
84
- x: image .x + image .width + spacing
85
-
80
+ ColumnLayout {
86
81
anchors {
82
+ margins: spacing
83
+ left: image .right
87
84
top: parent .top
88
85
bottom: parent .bottom
86
+ right: parent .right
89
87
}
90
88
91
- font .pixelSize : TextMetrics .title2Size
92
- verticalAlignment: Text .AlignVCenter
89
+ FBLabel {
90
+ id: label
91
+
92
+ color: " black"
93
+
94
+ font .pixelSize : TextMetrics .title2Size
95
+ verticalAlignment: Text .AlignVCenter
96
+ Layout .fillWidth : true
97
+ Layout .fillHeight : true
98
+ }
99
+
100
+ FBLabel {
101
+ id: subtitleLabel
102
+ elide: " ElideRight"
103
+
104
+ font .pixelSize : TextMetrics .normalSize * 0.8
105
+ Layout .fillWidth : true
106
+ Layout .fillHeight : true
107
+ visible: text !== " "
108
+ }
93
109
}
94
110
}
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ Rectangle {
40
40
id: restartButton
41
41
42
42
title: qsTr (" Start" )
43
+ subtitle: qsTr (" Kit: " ) + Emu .kits .getDataRow (Emu .kitIndexForID (Emu .defaultKit ), KitModel .NameRole )
43
44
icon: " qrc:/icons/resources/icons/edit-bomb.png"
44
45
45
46
onClicked: {
You can’t perform that action at this time.
0 commit comments