Cleaning up after replacing the QSplashScreen
base class with the QWidget
class (#4941 by @laanwj).
qt: Cleanup SplashScreen class #14854
pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:20181201-cleanup-splashscreen changing 3 files +9 −12-
hebasto commented at 11:40 pm on December 1, 2018: member
-
Cleanup SplashScreen class
Cleaning up after replacing the QSplashScreen base class with the QWidget class.
-
fanquake added the label GUI on Dec 2, 2018
-
in src/qt/bitcoin.cpp:362 in 7d1b60ce93
356@@ -357,9 +357,9 @@ void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle) 357 { 358 SplashScreen *splash = new SplashScreen(m_node, 0, networkStyle); 359 // We don't hold a direct pointer to the splash screen after creation, but the splash 360- // screen will take care of deleting itself when slotFinish happens. 361+ // screen will take care of deleting itself when finish() happens. 362 splash->show(); 363- connect(this, &BitcoinApplication::splashFinished, splash, &SplashScreen::slotFinish); 364+ connect(this, &BitcoinApplication::splashFinished, splash, &SplashScreen::finish);
promag commented at 3:52 pm on December 3, 2018:Could just
0connect(this, &BitcoinApplication::splashFinished, splash, &SplashScreen::deleteLater);
or is there a good reason to call
hide()
?
promag commented at 11:08 pm on December 3, 2018:Just tested my suggestion above with Qt 5.11 on macOS 10.14.1 and the following are good:
- closing the app while splash is open
- splash goes away from the dock even if it’s minimized.
What’s your Qt version?
DrahtBot commented at 5:05 pm on December 3, 2018: memberThe following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #14250 (qt: Remove redundant stopThread() and stopExecutor() signals by hebasto)
- #13880 (gui: Try shutdown also on failure by MarcoFalke)
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.
jonasschnelli commented at 3:36 pm on December 7, 2018: contributorCan’t remember why the unused variable ended up there.
utACK 7d1b60ce931d5944576fc726b0ef6b9a10ef8793
laanwj commented at 4:12 pm on December 7, 2018: memberutACK 7d1b60ce931d5944576fc726b0ef6b9a10ef8793pull[bot] referenced this in commit 2b12268095 on Dec 7, 2018laanwj merged this on Dec 7, 2018laanwj closed this on Dec 7, 2018
hebasto deleted the branch on Dec 7, 2018jasonbcox referenced this in commit 75732ddc22 on Oct 9, 2020DrahtBot locked this on Sep 8, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 09:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 09:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me