-
Notifications
You must be signed in to change notification settings - Fork 38.7k
qt: Cleanup SplashScreen class #14854
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
Cleaning up after replacing the QSplashScreen base class with the QWidget class.
| // screen will take care of deleting itself when finish() happens. | ||
| splash->show(); | ||
| connect(this, &BitcoinApplication::splashFinished, splash, &SplashScreen::slotFinish); | ||
| connect(this, &BitcoinApplication::splashFinished, splash, &SplashScreen::finish); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could just
connect(this, &BitcoinApplication::splashFinished, splash, &SplashScreen::deleteLater);
or is there a good reason to call hide()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When #8231 was merged there was no deleteLater() call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on macOS 10.13.6: if the splash screen is minimized, neither deleteLater() nor hide(); deleteLater() can remove it from the Dock.
It seems the simplest way is to not touch the patch from #8231.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
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. |
|
Can't remember why the unused variable ended up there. utACK 7d1b60c |
|
utACK 7d1b60c |
Summary: Cleaning up after replacing the QSplashScreen base class with the QWidget class ([[bitcoin/bitcoin#4941 | PR4941]]). Backport of Core [[bitcoin/bitcoin#14854 | PR14854]] Test Plan: ``` ninja && ninja check src/qt/bitcoin-qt ``` Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D7840
Cleaning up after replacing the
QSplashScreenbase class with theQWidgetclass (#4941 by @laanwj).cc @jonasschnelli