Skip to content

Conversation

@Diapolo
Copy link

@Diapolo Diapolo commented May 11, 2012

  • change global setWindowIcon() calls to qApp->setWindowIcon() as all parent windows will then use this set icon

@laanwj
Copy link
Member

laanwj commented May 11, 2012

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.

@laanwj
Copy link
Member

laanwj commented May 11, 2012

I also wonder why this doesn't go right by default. Shouldn't it inherit the parent window icon? Or how does this work?

@Diapolo
Copy link
Author

Diapolo commented May 11, 2012

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.

@Diapolo
Copy link
Author

Diapolo commented May 11, 2012

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?

@laanwj
Copy link
Member

laanwj commented May 11, 2012

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.

@laanwj
Copy link
Member

laanwj commented May 11, 2012

maybe qApp->setWindowIcon ?

@Diapolo
Copy link
Author

Diapolo commented May 11, 2012

Can qApp be freely used in bitcoingui.cpp? I'll try this.

@Diapolo
Copy link
Author

Diapolo commented May 11, 2012

Alright this fixes it! Will update this pull.

@Diapolo
Copy link
Author

Diapolo commented May 11, 2012

Updated!

@laanwj
Copy link
Member

laanwj commented May 11, 2012

You still need to set the window icon of the current window as well... It will only change the default for new dialogs/windows.

@Diapolo
Copy link
Author

Diapolo commented May 11, 2012

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?

@laanwj
Copy link
Member

laanwj commented May 11, 2012

Ok, maybe this just works then.

@laanwj
Copy link
Member

laanwj commented May 11, 2012

On Ubuntu, this causes no dock icon to be shown at all anymore (either in testnet or normal net).
You do need to set the setWindowIcon on the BitcoinGUI instance as well, in both places where you set it in qApp. The qApp icon is only applied automatically to windows constructed after it is set. The BitcoinGUI instance already exists at that time.

@Diapolo
Copy link
Author

Diapolo commented May 11, 2012

So just re-add setWindowIcon(QIcon(":icons/bitcoin")); below the qApp-> lines?

@laanwj
Copy link
Member

laanwj commented May 11, 2012

Yes

@Diapolo
Copy link
Author

Diapolo commented May 11, 2012

Done and this work on Ubuntu now, too so that you have testnet-symbol on every dialog while on testnet?

@laanwj
Copy link
Member

laanwj commented May 11, 2012

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.

laanwj added a commit that referenced this pull request May 11, 2012
GUI: allow easier use of the testnet icon
@laanwj laanwj merged commit 23f59e7 into bitcoin:master May 11, 2012
coblee pushed a commit to litecoin-project/litecoin that referenced this pull request Jul 17, 2012
GUI: allow easier use of the testnet icon
suprnurd pushed a commit to chaincoin-legacy/chaincoin that referenced this pull request Dec 5, 2017
1. print to stdout too
2. only print when it's critical (i.e. going to crash on assert)
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request May 6, 2020
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
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request May 6, 2020
…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
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants