Repository navigation
The Block Clock - #220
The Block Clock#220
Conversation
- This method would allow to get the blocktime value of the block at the given height.
90469cb to
e9b5ddd
Compare
e9b5ddd to
96e47f8
Compare
96e47f8 to
63792bf
Compare
37b6257 to
8515fdf
Compare
fa214b0 to
26d57ff
Compare
|
I noticed that these changes require the QtGraphicalEffects module (qml-module-graphicaleffects ubuntu package). I'll likely have to update the depends to include that module or change how the icon is forced into a specific color. Looking for an opinion one way or the other. |
f0cb6dd to
021cbb2
Compare
jarolrod
left a comment
There was a problem hiding this comment.
Let's squash some of the history to have a clean commit record, but also I'm seeing some slight misalignment with the design file.
Below, the more visible layer is the design file, and below that is this PR on signet (hence diff block heights). Looks like the block height, the words "Blocktime" and peers indicator should be a bit higher up. Also fine with leaving this fixup for a follow-up!
8ecfae6 to
76a504e
Compare
76a504e to
2e5a0d8
Compare
2e5a0d8 to
3fd696d
Compare
|
Update. Remove a missed trailing whitespace |
3fd696d to
33eb4af
Compare
4f9bfbc qml: introduce the BlockClock (johnny9) e57e7ff qml: introduce ChainModel (johnny9) e38c565 qml: add sync time related properties to NodeModel (johnny9) 9c45b09 qml: add additional properties in Header (johnny9) fcee831 qml: add ability to pause NodeModel (johnny9) 1fce853acd1dd7089d67db58ba572b4fa7acf4f8 Add getBlockTime interface method in src/interfaces/chain.h (shaavan) Pull request description: This is a continuation of #148. The goal of this PR is to get the working features from #148 merged in using a QQuickPainterItem implementation of the dial instead of the javascript canvas. Connection state as well as the animating icon will be implemented in a later PR. Refactoring and clean up from the removal of the Canvas code still remains. [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/220) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/220) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/220) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/220) ACKs for top commit: jarolrod: ACK 4f9bfbc Tree-SHA512: 43b99d1fd69b67b285e91e05d3864c7044917cd6feae97b4c226f3a7b499ca24f6e786575dbc700461b1f6c58c0273746e4ea5834c554fa4dc916868199698df
b395d86 qml: move BlockClock confirmation colors into Theme.qml (jarolrod) ca0a451 qml: capitalize the BlockClock component's state names (jarolrod) 1051c2e qml: set BlockClock mouseArea cursorShape to pointing cursor (jarolrod) Pull request description: This implements the following review comments from bitcoin-core/gui-qml#220 (review) - Make cursor into pointing cursor when over the BlockClock to make the BlockClock look like it's clickable bitcoin-core/gui-qml#220 (comment) - Make BlockClock state names capital bitcoin-core/gui-qml#220 (comment) - Move out BlockClock confirmation colors into our Theme.qml bitcoin-core/gui-qml#220 (comment) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/250) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/250) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/250) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/250) ACKs for top commit: johnny9: ACK b395d86 Tree-SHA512: 7a7919a47f65872656a63fd7cac7cc94d95cfe60bf714d09295995296fd81b11c10e58ff4e7280c67bc74f6df7f3f1aa5c09975fa04e9c71d947fffc3df4b50b
4f9bfbc377c6babe89b76138009b86dc9e51e44f qml: introduce the BlockClock (johnny9) e57e7ffb5f13ae826c5c80510ecc940eb4059fdb qml: introduce ChainModel (johnny9) e38c56569f79741021a37415f8987a226ff23029 qml: add sync time related properties to NodeModel (johnny9) 9c45b09b7f186b02414b4854f334c6e726e1d2c0 qml: add additional properties in Header (johnny9) fcee8319075e49cb1291756e3b99c8beefe7ee4c qml: add ability to pause NodeModel (johnny9) 1fce853acd1dd7089d67db58ba572b4fa7acf4f8 Add getBlockTime interface method in src/interfaces/chain.h (shaavan) Pull request description: This is a continuation of #148. The goal of this PR is to get the working features from #148 merged in using a QQuickPainterItem implementation of the dial instead of the javascript canvas. Connection state as well as the animating icon will be implemented in a later PR. Refactoring and clean up from the removal of the Canvas code still remains. [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/220) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/220) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/220) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/220) ACKs for top commit: jarolrod: ACK 4f9bfbc377c6babe89b76138009b86dc9e51e44f Tree-SHA512: 43b99d1fd69b67b285e91e05d3864c7044917cd6feae97b4c226f3a7b499ca24f6e786575dbc700461b1f6c58c0273746e4ea5834c554fa4dc916868199698df
b395d8619bae954e10702f6b87ec119b922278ad qml: move BlockClock confirmation colors into Theme.qml (jarolrod) ca0a451a0cbacfbcc69f930587545852452131bf qml: capitalize the BlockClock component's state names (jarolrod) 1051c2e64710be353504922673cd29e0715dac53 qml: set BlockClock mouseArea cursorShape to pointing cursor (jarolrod) Pull request description: This implements the following review comments from bitcoin-core/gui-qml#220 (review) - Make cursor into pointing cursor when over the BlockClock to make the BlockClock look like it's clickable bitcoin-core/gui-qml#220 (comment) - Make BlockClock state names capital bitcoin-core/gui-qml#220 (comment) - Move out BlockClock confirmation colors into our Theme.qml bitcoin-core/gui-qml#220 (comment) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/250) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/250) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/250) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/250) ACKs for top commit: johnny9: ACK b395d8619bae954e10702f6b87ec119b922278ad Tree-SHA512: 7a7919a47f65872656a63fd7cac7cc94d95cfe60bf714d09295995296fd81b11c10e58ff4e7280c67bc74f6df7f3f1aa5c09975fa04e9c71d947fffc3df4b50b
- This method would allow to get the blocktime value of the block at the given height. Github-Pull: bitcoin-core#220 Rebased-From: 1fce853
Github-Pull: bitcoin-core#220 Rebased-From: 094a2c4 Co-authored-by: shaavan <[email protected]>
Additional properties to Header will allow configuring Header's description color and bold values as well as Header's header-text bold value. Github-Pull: bitcoin-core#220 Rebased-From: 8db7f0f Co-authored-by: shaavan <[email protected]>
The properties will allow the gui to show an estimate for the time remaining before the node is synced. Github-Pull: bitcoin-core#220 Rebased-From: eb945ac Co-authored-by: shaavan <[email protected]>
The ChainModel is responsible for managing the block information that the gui components need to show. In this case, the ChainModel will provide a list of ratios for the block times of the last 12 hours to be rendered on the block clock's dial. Github-Pull: bitcoin-core#220 Rebased-From: 60bd8cb Co-authored-by: shaavan <[email protected]>
Implements a few of the BlockClock dial states. Sync progress while downloading, rendering blocks after sync, and pausing/unpausing the node. An additional Model is added, ChainModel, to provide the dial block information. Changes to NodeModel are also made to support the pausing/unpausing Dial feature. Github-Pull: bitcoin-core#220 Rebased-From: 6701ad2 Co-authored-by: shaavan <[email protected]>
Rebased-From: 094a2c4 Github-Pull: bitcoin-core#220
Additional properties to Header will allow configuring Header's description color and bold values as well as Header's header-text bold value. Rebased-From: 8db7f0f Github-Pull: bitcoin-core#220
The properties will allow the gui to show an estimate for the time remaining before the node is synced. Rebased-From: eb945ac Github-Pull: bitcoin-core#220
The ChainModel is responsible for managing the block information that the gui components need to show. In this case, the ChainModel will provide a list of ratios for the block times of the last 12 hours to be rendered on the block clock's dial. Rebased-From: 60bd8cb Github-Pull: bitcoin-core#220
Implements a few of the BlockClock dial states. Sync progress while downloading, rendering blocks after sync, and pausing/unpausing the node. An additional Model is added, ChainModel, to provide the dial block information. Changes to NodeModel are also made to support the pausing/unpausing Dial feature. Rebased-From: 6701ad2 Github-Pull: bitcoin-core#220
4f9bfbc qml: introduce the BlockClock (johnny9) e57e7ff qml: introduce ChainModel (johnny9) e38c565 qml: add sync time related properties to NodeModel (johnny9) 9c45b09 qml: add additional properties in Header (johnny9) fcee831 qml: add ability to pause NodeModel (johnny9) 1fce853 Add getBlockTime interface method in src/interfaces/chain.h (shaavan) Pull request description: This is a continuation of bitcoin-core#148. The goal of this PR is to get the working features from bitcoin-core#148 merged in using a QQuickPainterItem implementation of the dial instead of the javascript canvas. Connection state as well as the animating icon will be implemented in a later PR. Refactoring and clean up from the removal of the Canvas code still remains. [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/220) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/220) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/220) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/220) ACKs for top commit: jarolrod: ACK 4f9bfbc Rebased-From: a56361d Github-Pull: bitcoin-core#220
b395d86 qml: move BlockClock confirmation colors into Theme.qml (jarolrod) ca0a451 qml: capitalize the BlockClock component's state names (jarolrod) 1051c2e qml: set BlockClock mouseArea cursorShape to pointing cursor (jarolrod) Pull request description: This implements the following review comments from bitcoin-core#220 (review) - Make cursor into pointing cursor when over the BlockClock to make the BlockClock look like it's clickable bitcoin-core#220 (comment) - Make BlockClock state names capital bitcoin-core#220 (comment) - Move out BlockClock confirmation colors into our Theme.qml bitcoin-core#220 (comment) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/win64/insecure_win_gui.zip?branch=pull/250) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos/insecure_mac_gui.zip?branch=pull/250) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/macos_arm64/insecure_mac_arm64_gui.zip?branch=pull/250) [](https://api.cirrus-ci.com/v1/artifact/github/bitcoin-core/gui-qml/android/insecure_android_apk.zip?branch=pull/250) ACKs for top commit: johnny9: ACK b395d86 Rebased-From: 5161711 Github-Pull: bitcoin-core#250
Rebased-From: 094a2c4 Github-Pull: bitcoin-core/gui-qml#220
Additional properties to Header will allow configuring Header's description color and bold values as well as Header's header-text bold value. Rebased-From: 8db7f0f Github-Pull: bitcoin-core/gui-qml#220
The properties will allow the gui to show an estimate for the time remaining before the node is synced. Rebased-From: eb945ac Github-Pull: bitcoin-core/gui-qml#220
The ChainModel is responsible for managing the block information that the gui components need to show. In this case, the ChainModel will provide a list of ratios for the block times of the last 12 hours to be rendered on the block clock's dial. Rebased-From: 60bd8cb Github-Pull: bitcoin-core/gui-qml#220
Implements a few of the BlockClock dial states. Sync progress while downloading, rendering blocks after sync, and pausing/unpausing the node. An additional Model is added, ChainModel, to provide the dial block information. Changes to NodeModel are also made to support the pausing/unpausing Dial feature. Rebased-From: 6701ad2 Github-Pull: bitcoin-core/gui-qml#220
Rebased-From: 094a2c4 Github-Pull: bitcoin-core/gui-qml#220
Additional properties to Header will allow configuring Header's description color and bold values as well as Header's header-text bold value. Rebased-From: 8db7f0f Github-Pull: bitcoin-core/gui-qml#220
The properties will allow the gui to show an estimate for the time remaining before the node is synced. Rebased-From: eb945ac Github-Pull: bitcoin-core/gui-qml#220
The ChainModel is responsible for managing the block information that the gui components need to show. In this case, the ChainModel will provide a list of ratios for the block times of the last 12 hours to be rendered on the block clock's dial. Rebased-From: 60bd8cb Github-Pull: bitcoin-core/gui-qml#220
Implements a few of the BlockClock dial states. Sync progress while downloading, rendering blocks after sync, and pausing/unpausing the node. An additional Model is added, ChainModel, to provide the dial block information. Changes to NodeModel are also made to support the pausing/unpausing Dial feature. Rebased-From: 6701ad2 Github-Pull: bitcoin-core/gui-qml#220
Co-authored-by: shaavan <[email protected]> Rebased-From: 094a2c4 Github-Pull: bitcoin-core/gui-qml#220
Additional properties to Header will allow configuring Header's description color and bold values as well as Header's header-text bold value. Co-authored-by: shaavan <[email protected]> Rebased-From: 8db7f0f Github-Pull: bitcoin-core/gui-qml#220


This is a continuation of #148. The goal of this PR is to get the working features from #148 merged in using a QQuickPainterItem implementation of the dial instead of the javascript canvas. Connection state as well as the animating icon will be implemented in a later PR. Refactoring and clean up from the removal of the Canvas code still remains.