File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,8 @@ Item {
34
34
detailItem: ConnectionSettings {}
35
35
}
36
36
SettingsProxy {
37
- navLeftDetail: NavButton {
38
- iconSource: " image://images/caret-left"
39
- text: qsTr (" Back" )
40
- onClicked: {
41
- connectionSwipe .decrementCurrentIndex ()
42
- }
43
- }
44
- navMiddleDetail: Header {
45
- headerBold: true
46
- headerSize: 18
47
- header: qsTr (" Proxy Settings" )
37
+ onBackClicked: {
38
+ connectionSwipe .decrementCurrentIndex ()
48
39
}
49
40
}
50
41
}
Original file line number Diff line number Diff line change @@ -9,18 +9,27 @@ import "../../controls"
9
9
import "../../components"
10
10
11
11
Page {
12
- id : proxy_settings
13
- property alias navLeftDetail : navbar . leftDetail
14
- property alias navMiddleDetail : navbar . middleDetail
12
+ signal backClicked
13
+
14
+ id : root
15
15
16
16
background: null
17
17
implicitWidth: 450
18
18
leftPadding: 20
19
19
rightPadding: 20
20
20
topPadding: 30
21
21
22
- header: NavigationBar {
23
- id: navbar
22
+ header: NavigationBar2 {
23
+ leftItem: NavButton {
24
+ iconSource: " image://images/caret-left"
25
+ text: qsTr (" Back" )
26
+ onClicked: root .backClicked ()
27
+ }
28
+ centerItem: Header {
29
+ headerBold: true
30
+ headerSize: 18
31
+ header: qsTr (" Proxy Settings" )
32
+ }
24
33
}
25
34
ProxySettings {
26
35
width: Math .min (parent .width , 450 )
You can’t perform that action at this time.
0 commit comments