1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

OP-786 Added static splash screen shown during application launch.

This commit is contained in:
Fredrik Arvidsson 2013-01-15 23:22:44 +01:00
parent 1a303aa85f
commit cf40948bf0
4 changed files with 17 additions and 0 deletions

View File

@ -28,3 +28,6 @@ win32 {
}
OTHER_FILES += openpilotgcs.rc
RESOURCES += \
appresources.qrc

View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/app">
<file>loadingblue13.gif</file>
</qresource>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 KiB

View File

@ -46,6 +46,7 @@
#include <QtGui/QMessageBox>
#include <QtGui/QApplication>
#include <QtGui/QMainWindow>
#include <QtGui/QSplashScreen>
enum { OptionIndent = 4, DescriptionIndent = 24 };
@ -250,6 +251,11 @@ int main(int argc, char **argv)
SharedTools::QtSingleApplication app((QLatin1String(appNameC)), argc, argv);
//Open Splashscreen
QPixmap logoPixmap(":/app/loadingblue13.gif");
QSplashScreen splash(logoPixmap);
splash.show();
QString locale = QLocale::system().name();
// Must be done before any QSettings class is created
@ -374,5 +380,8 @@ int main(int argc, char **argv)
// Do this after the event loop has started
QTimer::singleShot(100, &pluginManager, SLOT(startTests()));
//Close splashscreen
splash.close();
return app.exec();
}