File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE RCC><RCC version="1.0">
2
2
<qresource prefix="/qml">
3
+ <file>components/BlockCounter.qml</file>
3
4
<file>pages/initerrormessage.qml</file>
4
5
<file>pages/stub.qml</file>
5
6
</qresource>
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2021 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
+ // The BlockCounter component.
6
+
7
+ import QtQuick 2.12
8
+ import QtQuick.Controls 2.12
9
+
10
+ Label {
11
+ property int blockHeight: 0
12
+ background: Rectangle {
13
+ color: " black"
14
+ }
15
+ color: " orange"
16
+ padding: 16
17
+ horizontalAlignment: Text .AlignHCenter
18
+ verticalAlignment: Text .AlignVCenter
19
+ font .pixelSize : height / 3
20
+ text: blockHeight
21
+ }
Original file line number Diff line number Diff line change 2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- import QtQml 2.12
5
+ import QtQuick 2.12
6
6
import QtQuick.Controls 2.12
7
+ import "../components" as BitcoinCoreComponents
8
+
7
9
8
10
ApplicationWindow {
9
11
id: appWindow
@@ -13,4 +15,11 @@ ApplicationWindow {
13
15
visible: true
14
16
15
17
Component .onCompleted : nodeModel .startNodeInitializionThread ();
18
+
19
+ BitcoinCoreComponents .BlockCounter {
20
+ id: blockCounter
21
+ anchors .centerIn : parent
22
+ height: parent .height / 3
23
+ blockHeight: nodeModel .blockTipHeight
24
+ }
16
25
}
You can’t perform that action at this time.
0 commit comments