mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-27 16:57:00 -06:00
Add a simple splash screen
This commit is contained in:
parent
15df12c924
commit
1ce74fb8b1
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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
BIN
runtime/splash.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Loading…
Reference in New Issue
Block a user