From d3e3c0c767f159a36a82bc20f424ef0a0a7fe167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Barbosa?= Date: Sun, 27 Aug 2023 23:05:00 +0100 Subject: [PATCH] qml: use NavigationBar2 in NodeRunner --- src/qml/pages/main.qml | 7 ++----- src/qml/pages/node/NodeRunner.qml | 12 +++++++++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/qml/pages/main.qml b/src/qml/pages/main.qml index 99f84fe35c..70a4697d53 100644 --- a/src/qml/pages/main.qml +++ b/src/qml/pages/main.qml @@ -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 { diff --git a/src/qml/pages/node/NodeRunner.qml b/src/qml/pages/node/NodeRunner.qml index dfea71e27c..2372983e21 100644 --- a/src/qml/pages/node/NodeRunner.qml +++ b/src/qml/pages/node/NodeRunner.qml @@ -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();