Skip to content

Commit a25646a

Browse files
committed
run qmlformat
1 parent c5cfe1d commit a25646a

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

modules/dashboard/Content.qml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import QtQuick.Layouts
99

1010
Item {
1111
id: root
12-
12+
1313
required property PersistentProperties visibilities
1414
required property PersistentProperties state
1515
readonly property real nonAnimWidth: view.implicitWidth + viewWrapper.anchors.margins * 2
@@ -56,12 +56,8 @@ Item {
5656

5757
readonly property int currentIndex: root.state.currentTab
5858
readonly property Item currentItem: panelGenerator.count > 0 ? panelGenerator.itemAt(currentIndex) : null
59-
property list<Component> panelModel: [
60-
dash,
61-
Config.dashboard.enableMedia ? media : null,
62-
Config.dashboard.enablePerformance ? performance : null
63-
].filter(panel => panel != null)
64-
59+
property list<Component> panelModel: [dash, Config.dashboard.enableMedia ? media : null, Config.dashboard.enablePerformance ? performance : null].filter(panel => panel != null)
60+
6561
anchors.fill: parent
6662

6763
flickableDirection: Flickable.HorizontalFlick
@@ -83,7 +79,9 @@ Item {
8379

8480
Component {
8581
id: media
86-
Media { visibilities: root.visibilities }
82+
Media {
83+
visibilities: root.visibilities
84+
}
8785
}
8886

8987
Component {
@@ -113,19 +111,19 @@ Item {
113111
}
114112

115113
onPanelModelChanged: {
116-
panelGenerator.model = panelModel
114+
panelGenerator.model = panelModel;
117115
}
118116

119117
RowLayout {
120118
id: row
121-
119+
122120
Repeater {
123121
id: panelGenerator
124122
delegate: Pane {
125123
required property Component modelData
126124
sourceComponent: modelData
127125
}
128-
}
126+
}
129127
}
130128

131129
Behavior on contentX {

modules/dashboard/Tabs.qml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,17 @@ Item {
1616
required property PersistentProperties state
1717
readonly property alias count: bar.count
1818
property list<var> tabsModel: [
19-
{ iconName: "dashboard", tabtext: qsTr("Dashboard") },
20-
Config.dashboard.enableMedia ? { iconName: "queue_music", tabtext: qsTr("Media") } : null,
21-
Config.dashboard.enablePerformance ? { iconName: "speed", tabtext: qsTr("Performance") } : null,
22-
].filter(tab => tab != null)
19+
{
20+
iconName: "dashboard",
21+
tabtext: qsTr("Dashboard")
22+
},
23+
Config.dashboard.enableMedia ? {
24+
iconName: "queue_music",
25+
tabtext: qsTr("Media")
26+
} : null, Config.dashboard.enablePerformance ? {
27+
iconName: "speed",
28+
tabtext: qsTr("Performance")
29+
} : null,].filter(tab => tab != null)
2330

2431
implicitHeight: bar.implicitHeight + indicator.implicitHeight + indicator.anchors.topMargin + separator.implicitHeight
2532

@@ -34,7 +41,7 @@ Item {
3441
background: null
3542

3643
onCurrentIndexChanged: root.state.currentTab = currentIndex
37-
44+
3845
Repeater {
3946
model: tabsModel
4047
Tab {

0 commit comments

Comments
 (0)