File tree Expand file tree Collapse file tree 2 files changed +15
-17
lines changed Expand file tree Collapse file tree 2 files changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,8 @@ ApplicationWindow {
87
87
}
88
88
}
89
89
NodeSettings {
90
- navMiddleDetail: Header {
91
- headerBold: true
92
- headerSize: 18
93
- header: " Settings"
94
- }
95
- navRightDetail: NavButton {
96
- text: qsTr (" Done" )
97
- onClicked: node_swipe .decrementCurrentIndex ()
90
+ onDoneClicked: {
91
+ node_swipe .decrementCurrentIndex ()
98
92
}
99
93
}
100
94
}
Original file line number Diff line number Diff line change @@ -10,28 +10,32 @@ import "../../components"
10
10
import "../settings"
11
11
12
12
Item {
13
- id : nodeSettings
14
- property alias navMiddleDetail : nodeSettingsView . navMiddleDetail
15
- property alias navRightDetail : nodeSettingsView . navRightDetail
13
+ signal doneClicked
14
+
15
+ id : root
16
16
17
17
StackView {
18
18
id: nodeSettingsView
19
- property alias navMiddleDetail: node_settings .navMiddleDetail
20
- property alias navRightDetail: node_settings .navRightDetail
21
19
anchors .fill : parent
22
20
23
21
initialItem: Page {
24
22
id: node_settings
25
- property alias navMiddleDetail: navbar .middleDetail
26
- property alias navRightDetail: navbar .rightDetail
27
23
background: null
28
24
implicitWidth: 450
29
25
leftPadding: 20
30
26
rightPadding: 20
31
27
topPadding: 30
32
28
33
- header: NavigationBar {
34
- id: navbar
29
+ header: NavigationBar2 {
30
+ centerItem: Header {
31
+ headerBold: true
32
+ headerSize: 18
33
+ header: " Settings"
34
+ }
35
+ rightItem: NavButton {
36
+ text: qsTr (" Done" )
37
+ onClicked: root .doneClicked ()
38
+ }
35
39
}
36
40
ColumnLayout {
37
41
spacing: 4
You can’t perform that action at this time.
0 commit comments