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:
parent
1a303aa85f
commit
cf40948bf0
@ -28,3 +28,6 @@ win32 {
|
||||
}
|
||||
|
||||
OTHER_FILES += openpilotgcs.rc
|
||||
|
||||
RESOURCES += \
|
||||
appresources.qrc
|
||||
|
5
ground/openpilotgcs/src/app/appresources.qrc
Normal file
5
ground/openpilotgcs/src/app/appresources.qrc
Normal file
@ -0,0 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/app">
|
||||
<file>loadingblue13.gif</file>
|
||||
</qresource>
|
||||
</RCC>
|
BIN
ground/openpilotgcs/src/app/loadingblue13.gif
Normal file
BIN
ground/openpilotgcs/src/app/loadingblue13.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 397 KiB |
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user