File tree Expand file tree Collapse file tree 3 files changed +66
-0
lines changed Expand file tree Collapse file tree 3 files changed +66
-0
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,7 @@ QML_RES_QML = \
367
367
qml/controls/NavButton.qml \
368
368
qml/controls/PageIndicator.qml \
369
369
qml/controls/NavigationBar.qml \
370
+ qml/controls/NavigationBar2.qml \
370
371
qml/controls/OptionButton.qml \
371
372
qml/controls/OptionSwitch.qml \
372
373
qml/controls/OutlineButton.qml \
Original file line number Diff line number Diff line change 28
28
<file>controls/NavButton.qml</file>
29
29
<file>controls/PageIndicator.qml</file>
30
30
<file>controls/NavigationBar.qml</file>
31
+ <file>controls/NavigationBar2.qml</file>
31
32
<file>controls/OptionButton.qml</file>
32
33
<file>controls/OptionSwitch.qml</file>
33
34
<file>controls/OutlineButton.qml</file>
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2023 The Bitcoin Core developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ import QtQuick 2.15
6
+ import QtQuick.Controls 2.15
7
+ import QtQuick.Layouts 1.15
8
+
9
+ Pane {
10
+ property alias leftItem: left_section .contentItem
11
+ property alias centerItem: center_section .contentItem
12
+ property alias rightItem: right_section .contentItem
13
+
14
+ background: null
15
+ padding: 4
16
+ contentItem: RowLayout {
17
+ Div {
18
+ id: left_div
19
+ Layout .preferredWidth : Math .floor (Math .max (left_div .implicitWidth , right_div .implicitWidth ))
20
+ contentItem: RowLayout {
21
+ Section {
22
+ id: left_section
23
+ }
24
+ Spacer {
25
+ }
26
+ }
27
+ }
28
+ Section {
29
+ id: center_section
30
+ }
31
+ Div {
32
+ id: right_div
33
+ Layout .preferredWidth : Math .floor (Math .max (left_div .implicitWidth , right_div .implicitWidth ))
34
+ contentItem: RowLayout {
35
+ Spacer {
36
+ }
37
+ Section {
38
+ id: right_section
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ component Div: Pane {
45
+ Layout .alignment : Qt .AlignCenter
46
+ Layout .fillWidth : true
47
+ Layout .minimumWidth : implicitWidth
48
+ background: null
49
+ padding: 0
50
+ }
51
+
52
+ component Section: Pane {
53
+ Layout .alignment : Qt .AlignCenter
54
+ Layout .minimumWidth : implicitWidth
55
+ background: null
56
+ padding: 0
57
+ }
58
+
59
+ component Spacer: Item {
60
+ Layout .alignment : Qt .AlignCenter
61
+ Layout .fillWidth : true
62
+ height: 1
63
+ }
64
+ }
You can’t perform that action at this time.
0 commit comments