Skip to content

Commit

Permalink
qml: use NavigationBar2 in NodeRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
promag committed Sep 12, 2023
1 parent 416c994 commit d3e3c0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
7 changes: 2 additions & 5 deletions src/qml/pages/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,8 @@ ApplicationWindow {
interactive: false
orientation: Qt.Vertical
NodeRunner {
navRightDetail: NavButton {
iconSource: "image://images/gear"
iconHeight: 24
iconWidth: 24
onClicked: node_swipe.incrementCurrentIndex()
onSettingsClicked: {
node_swipe.incrementCurrentIndex()
}
}
NodeSettings {
Expand Down
12 changes: 9 additions & 3 deletions src/qml/pages/node/NodeRunner.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ import "../../controls"
import "../../components"

Page {
signal settingsClicked
id: root
background: null
clip: true
property alias navRightDetail: navbar.rightDetail
header: NavigationBar {
id: navbar
header: NavigationBar2 {
rightItem: NavButton {
iconSource: "image://images/gear"
iconHeight: 24
iconWidth: 24
onClicked: root.settingsClicked()
}
}

Component.onCompleted: nodeModel.startNodeInitializionThread();
Expand Down

0 comments on commit d3e3c0c

Please sign in to comment.