gui: Add Windows taskbar progress#14137
gui: Add Windows taskbar progress#14137ken2812221 wants to merge 1 commit intobitcoin:masterfrom ken2812221:qt-windows-progress-bar
Conversation
luke-jr
left a comment
There was a problem hiding this comment.
Should this also show splashscreen progress?
src/qt/bitcoingui.cpp
Outdated
There was a problem hiding this comment.
This is as same as here , I guess this is to round the value
Line 856 in 68f3c7e
There was a problem hiding this comment.
Ok, I'll use qRound after gitian build done.
|
Concept ACK. Thanks for following up on this so quickly, and using Given that this is an entirely new implementation, and includes the build system changes, I don't think you need to cherry-pick/include the other committer. I'll test on a Windows VM shortly. |
|
Concept ACK (haven't looked at the code though) |
src/qt/bitcoingui.h
Outdated
There was a problem hiding this comment.
Use follow declaration instead?
There was a problem hiding this comment.
What do you mean "follow declaration"?
There was a problem hiding this comment.
Because you don't need to pull in the entire header file (+ what ever it includes) when using just a pointer. It's preferred in case like this to reduce compile times etc. Include it in CPP instead.
There was a problem hiding this comment.
☝️also, look in other headers, it's already a recurring practice.
There was a problem hiding this comment.
Oh, I saw that QT_NAMESPACE. I'll do that after gitian build finished too.
src/qt/bitcoingui.cpp
Outdated
|
I have no idea what's going on in gitian build. I am able to build this locally. Why does qtwinextras not exist? |
|
This is my gitian build result for 954d19aff18dc128e3208275b65facd7b55cd852 using |
|
I may have to purge the cache? Did a |
|
@jonasschnelli Could you try to see if your gitian build script also fails here? |
|
I may know what's going on. makefile would check only the source file listed in .stamp file Lines 153 to 158 in adf27b5 |
|
@MarcoFalke This should work now. |
|
tACK c3c0022 on Win10 |
|
Tested on Win10 via gitian build https://bitcoin.jonasschnelli.ch/build/797 but can't see the status bar: |
|
The status bar would hide on 100%. Should I make it always be visible? |
|
@ken2812221: Okay. I see. Any good test plan how to test this on regtest? |
Hmm. I don't think there is a good way to make it not to be 100% on regtest. I would have to use testnet and |
|
I guess you'd have to set nTime of the blocks to last year or so? |
|
Update: Now the taskbar progress show/hide along with the modaloverlay. It can be easily tested on regtest. |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
depends/Makefile
Outdated
There was a problem hiding this comment.
See above. The current build system only detect the first file is changed or not, so winextra would not be downloaded in you have the source file cache, but it would be re-built(which cause an error). This make the Makefile detect the file amount to be exactly match.
| Needs rebase |
| tar --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttools_file_name) -C qttools | ||
| tar --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttools_file_name) -C qttools && \ | ||
| mkdir qtwinextras && \ | ||
| tar --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qtwinextras_file_name) -C qtwinextras |
There was a problem hiding this comment.
Needs rebase to add the --no-same-owner
| $(package)_qttools_sha256_hash=50e75417ec0c74bb8b1989d1d8e981ee83690dce7dfc0c2169f7c00f397e5117 | ||
|
|
||
| $(package)_qtwinextras_file_name=qtwinextras-$($(package)_suffix) | ||
| $(package)_qtwinextras_sha256_hash=794090446d33eecf9eb3f3a4f6f13b3e7ab5307936f8d21e4a76e7b6ba79125d |
There was a problem hiding this comment.
This hash needs to be updated for the current version.
|
Closing as up for grabs. @sipsorcery, @NicolasDorier either of you might be interested in picking this up if you think it will be an improvement to Qt on Windows. |
|
I will probably pick it up once we get #15529 |


ref: #14090
Close #14134
This PR adds an progress bar at taskbar on Windows. This progress bar will hide when full synced.