MCPcopy Create free account
hub / github.com/MITK/MITK / initializeSplashScreen

Method initializeSplashScreen

Modules/AppUtil/src/mitkBaseApplication.cpp:1056–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1054 }
1055
1056 void BaseApplication::initializeSplashScreen(QCoreApplication * application) const
1057 {
1058 auto pixmapFileNameProp = d->getProperty(ARG_SPLASH_IMAGE);
1059
1060 if (!pixmapFileNameProp.isNull())
1061 {
1062 auto pixmapFileName = pixmapFileNameProp.toString();
1063 QFileInfo checkFile(pixmapFileName);
1064
1065 if (checkFile.exists() && checkFile.isFile())
1066 {
1067 QPixmap pixmap(checkFile.absoluteFilePath());
1068
1069 d->m_Splashscreen = new QSplashScreen(pixmap, Qt::WindowStaysOnTopHint);
1070 d->m_Splashscreen->show();
1071
1072 application->processEvents();
1073 }
1074 }
1075 }
1076
1077 QHash<QString, QVariant> BaseApplication::getFrameworkProperties() const
1078 {

Callers 1

initializeMethod · 0.95

Calls 3

showMethod · 0.80
getPropertyMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected