File tree Expand file tree Collapse file tree 2 files changed +21
-16
lines changed Expand file tree Collapse file tree 2 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import QtQuick.Layouts
1010
1111Item {
1212 id: root
13-
13+
1414 required property PersistentProperties visibilities
1515 required property PersistentProperties state
1616 required property FileDialog facePicker
@@ -58,12 +58,8 @@ Item {
5858
5959 readonly property int currentIndex: root .state .currentTab
6060 readonly property Item currentItem: panelGenerator .count > 0 ? panelGenerator .itemAt (currentIndex) : null
61- property list< Component> panelModel: [
62- dash,
63- Config .dashboard .enableMedia ? media : null ,
64- Config .dashboard .enablePerformance ? performance : null
65- ].filter (panel => panel != null )
66-
61+ property list< Component> panelModel: [dash, Config .dashboard .enableMedia ? media : null , Config .dashboard .enablePerformance ? performance : null ].filter (panel => panel != null )
62+
6763 anchors .fill : parent
6864
6965 flickableDirection: Flickable .HorizontalFlick
8682
8783 Component {
8884 id: media
89- Media { visibilities: root .visibilities }
85+ Media {
86+ visibilities: root .visibilities
87+ }
9088 }
9189
9290 Component {
@@ -116,19 +114,19 @@ Item {
116114 }
117115
118116 onPanelModelChanged: {
119- panelGenerator .model = panelModel
117+ panelGenerator .model = panelModel;
120118 }
121119
122120 RowLayout {
123121 id: row
124-
122+
125123 Repeater {
126124 id: panelGenerator
127125 delegate: Pane {
128126 required property Component modelData
129127 sourceComponent: modelData
130128 }
131- }
129+ }
132130 }
133131
134132 Behavior on contentX {
Original file line number Diff line number Diff 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
3441 background: null
3542
3643 onCurrentIndexChanged: root .state .currentTab = currentIndex
37-
44+
3845 Repeater {
3946 model: tabsModel
4047 Tab {
You can’t perform that action at this time.
0 commit comments