2023-01-30 Fred Gleason <fredg@paravelsystems.com>

* Refactored splash screen code so as not to hide the splash screen
	until after the event loop is started.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-01-30 16:48:54 -05:00
parent 822fb1de92
commit fee898fb56
4 changed files with 22 additions and 5 deletions

View File

@@ -22,9 +22,10 @@
#include "../icons/rdairplay-splash.xpm"
SplashScreen::SplashScreen()
SplashScreen::SplashScreen(QWidget *main_win)
: QSplashScreen(QPixmap(rdairplay_splash_xpm),Qt::WindowStaysOnTopHint)
{
d_main_window=main_win;
}
@@ -33,3 +34,8 @@ void SplashScreen::showMessage(const QString &str)
QSplashScreen::showMessage(str+" ",Qt::AlignRight|Qt::AlignBottom,Qt::white);
}
void SplashScreen::finish()
{
QSplashScreen::finish(d_main_window);
}