Skip to content

Commit d3e3c0c

Browse files
committed
qml: use NavigationBar2 in NodeRunner
1 parent 416c994 commit d3e3c0c

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

src/qml/pages/main.qml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,8 @@ ApplicationWindow {
8282
interactive: false
8383
orientation: Qt.Vertical
8484
NodeRunner {
85-
navRightDetail: NavButton {
86-
iconSource: "image://images/gear"
87-
iconHeight: 24
88-
iconWidth: 24
89-
onClicked: node_swipe.incrementCurrentIndex()
85+
onSettingsClicked: {
86+
node_swipe.incrementCurrentIndex()
9087
}
9188
}
9289
NodeSettings {

src/qml/pages/node/NodeRunner.qml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ import "../../controls"
99
import "../../components"
1010

1111
Page {
12+
signal settingsClicked
13+
id: root
1214
background: null
1315
clip: true
14-
property alias navRightDetail: navbar.rightDetail
15-
header: NavigationBar {
16-
id: navbar
16+
header: NavigationBar2 {
17+
rightItem: NavButton {
18+
iconSource: "image://images/gear"
19+
iconHeight: 24
20+
iconWidth: 24
21+
onClicked: root.settingsClicked()
22+
}
1723
}
1824

1925
Component.onCompleted: nodeModel.startNodeInitializionThread();

0 commit comments

Comments
 (0)