-
Notifications
You must be signed in to change notification settings - Fork 38.7k
GUI: allow easier use of the testnet icon #1259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Diapolo
commented
May 11, 2012
- change global setWindowIcon() calls to qApp->setWindowIcon() as all parent windows will then use this set icon
|
Please don't add non-model arguments to setModel calls. Sorry, but I don't think this is important enough to change the interface or introduce extra complexity at all. |
|
I also wonder why this doesn't go right by default. Shouldn't it inherit the parent window icon? Or how does this work? |
|
LOL, this can be done just like with the about-Qt dialog ... I don't even need to pass something new ;), so you are right. |
|
Updated to an easy fix, but I don't know, why they don't use the testnet icon as default. At lest now every GUI element uses it, while we are on testnet :). Edit: The Main-Window window icon is changed to testnet in BitcoinGUI::setClientModel(), perhaps the following dialogs still use what was default at compile-time? |
|
Yeah, I wonder where it gets the 'non-testnet' icon from at all? If new dialogs can somehow still find it, that means it is still stored somewhere, which is not right. We need to figure this out, so all the explicit setWindowIcons can go. |
|
maybe qApp->setWindowIcon ? |
|
Can qApp be freely used in bitcoingui.cpp? I'll try this. |
|
Alright this fixes it! Will update this pull. |
|
Updated! |
|
You still need to set the window icon of the current window as well... It will only change the default for new dialogs/windows. |
|
That is strange, as this works like it should. If I use normal net, the icon is correct on every dialog, the same for testnet. As we call setClientModel() on Init, the icon set should be a global one, what am I understanding wrong here? |
|
Ok, maybe this just works then. |
|
On Ubuntu, this causes no dock icon to be shown at all anymore (either in testnet or normal net). |
|
So just re-add setWindowIcon(QIcon(":icons/bitcoin")); below the qApp-> lines? |
|
Yes |
…icons for testnet with additional calls
|
Done and this work on Ubuntu now, too so that you have testnet-symbol on every dialog while on testnet? |
|
Yep it works great with this. However, ubuntu doesn't show a symbol for every window, just for the application, so I can't check the second part. I assume it is OK though everywhere now. |
GUI: allow easier use of the testnet icon
GUI: allow easier use of the testnet icon
1. print to stdout too 2. only print when it's critical (i.e. going to crash on assert)
799e3ad [Tests] Fix block version on RegTest (random-zebra) 00aae54 [Core][Cleanup] PoS: remove extra signature + IncrementExtraNonce (random-zebra) 389094f [Core] Remove StakeV1 in kernel and miner (random-zebra) Pull request description: This removes the old StakeV1 function and does some minor optimizations in the miner code (removing redundant signature and IncrementExtraNonce calls). This is based on top of the following three pull requests and will be rebased after their merge into master. So, they should be reviewed before this one. - [x] bitcoin#1276 - [x] bitcoin#1277 - [x] bitcoin#1278 ACKs for top commit: furszy: Staking working properly, ACK 799e3ad Fuzzbawls: ACK 799e3ad Tree-SHA512: a3cde86fc3a7cdad39d8d322dbcc0da1e34d044c4f320700605a9952e67788c825b53516e5ff452e37cde127aaf902416168dc6384fe62954d336efe7aea23eb
…take class b77c064 [Docs] Document zerocoin-related RPC changes for release notes (random-zebra) 4800729 [Core][Cleanup] Remove modifier as member of StakeInput objects (random-zebra) 238ea5f [Core][Cleanup][zPIV] CZPivStake --> CLegacyZPivStake (random-zebra) f1b21a2 [Core][Cleanup][zPIV] Remove code to produce v2 spends and zPOS stakes (random-zebra) Pull request description: This removes (now unused) code to produce old zerocoin spends and zPOS stakes. `CZPivStake` class is replaced with a `CLegacyZPivStake` (moved in new files `zpiv/zpos.*`) used exclusively to validate the chain. This also refactors `CStakeInput` class, removing the modifier functions (put back in kernel) and cleans up `kernel.*` files, removing old code and reorganizing them. This PR is based on top of: - [x] bitcoin#1259 - [x] bitcoin#1290 and it will be rebased after their merge. Only last **3** commits are relevant ACKs for top commit: furszy: Re-acking the PR, release notes added. ACK b77c064 Fuzzbawls: ACK b77c064 Tree-SHA512: cdf937822b435d3d05a8d3000d17340c74f7b7b17da4f1937935cb7bd71fddea9628c35a934c5abeea9ecb40b8daed074a49040479138a28fcd6699f2ca8bb8d