qt: Move initialization/shutdown to a thread

Move AppInit2 and Shutdown to a thread.

This allows a more responsive splash screen, prevents 'process does not respond'
messages from the window system and will allow for showing a user friendly
window while shutting down.
This commit is contained in:
Wladimir J. van der Laan
2014-01-07 11:30:17 +01:00
parent 6a0e2376a1
commit 202d853bbe
3 changed files with 301 additions and 114 deletions

View File

@@ -13,6 +13,8 @@
SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f, bool isTestNet) :
QSplashScreen(pixmap, f)
{
setAutoFillBackground(true);
// set reference point, paddings
int paddingRight = 50;
int paddingTop = 50;