Skip to content
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

[Splash] use directly QSplashScreen & update splash MSC logos #800

Merged
merged 3 commits into from
Nov 29, 2023

Conversation

mathildemerle
Copy link

This PR removes the use of medSplashScreen which is not needed anymore, we can use directly QSplashScreen.

It's now launched at the creation of the app (in the beginning of medApplication constructor), and automatically closed when the window of the app is displayed.

This change debugs also a problem at least of Ubuntu side where the splashScreen was not displayed at the right time.

Also, i updated the MUSICardio logos for splash screen.

Ⓜ️

@@ -146,6 +170,9 @@ void medApplication::setMainWindow(medMainWindow *mw)
QVariant var = QVariant::fromValue((QObject*)d->mainWindow);
this->setProperty("MainWindow",var);
d->systemOpenInstructions.clear();

// Wait until the app is displayed to close itself
d->splashScreen->finish(d->mainWindow);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The close function will be called on the splash screen, but this does not delete the widget unless the attribute Qt::WA_DeleteOnClose is set.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, i added a line and rebased the PR

@mathildemerle mathildemerle merged commit 74e4e8d into Inria-Asclepios:master Nov 29, 2023
@mathildemerle mathildemerle deleted the splashQt2 branch November 29, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants