Add a simple splash screen

This commit is contained in:
Dave Page 2016-09-05 16:45:01 +01:00
parent 15df12c924
commit 1ce74fb8b1
3 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include <QtNetwork>
#include <QLineEdit>
#include <QInputDialog>
#include <QSplashScreen>
#endif
// App headers
@ -50,6 +51,12 @@ int main(int argc, char * argv[])
QCoreApplication::setOrganizationDomain("pgadmin.org");
QCoreApplication::setApplicationName(PGA_APP_NAME);
// Display the spash screen
QSplashScreen *splash = new QSplashScreen();
splash->setPixmap(QPixmap(":/splash.png"));
splash->show();
app.processEvents(QEventLoop::AllEvents);
quint16 port = 0L;
// Find an unused port number. Essentially, we're just reserving one
@ -149,6 +156,7 @@ int main(int argc, char * argv[])
browserWindow.show();
// Go!
splash->finish(NULL);
return app.exec();
}

View File

@ -4,5 +4,6 @@
<file>back.png</file>
<file>forward.png</file>
<file>close.png</file>
<file>splash.png</file>
</qresource>
</RCC>

BIN
runtime/splash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB