| 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 | { |
no test coverage detected