mirror of
https://github.com/tnodir/fort
synced 2024-11-15 03:36:07 +00:00
UI: SplashScreen: Show without activating
This commit is contained in:
parent
44669b9a02
commit
429592523e
@ -33,6 +33,7 @@ void startOpacityAnimation(
|
||||
SplashScreen::SplashScreen() : QSplashScreen()
|
||||
{
|
||||
this->setAttribute(Qt::WA_DeleteOnClose);
|
||||
this->setAttribute(Qt::WA_ShowWithoutActivating);
|
||||
|
||||
setupUi();
|
||||
}
|
||||
@ -52,8 +53,7 @@ void SplashScreen::closeDelayed()
|
||||
|
||||
void SplashScreen::closeFading()
|
||||
{
|
||||
startOpacityAnimation(
|
||||
this, [&] { close(); }, /*backward=*/true);
|
||||
startOpacityAnimation(this, [&] { close(); }, /*backward=*/true);
|
||||
}
|
||||
|
||||
void SplashScreen::setupUi()
|
||||
|
Loading…
Reference in New Issue
Block a user