mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add a simple splash screen
This commit is contained in:
parent
15df12c924
commit
1ce74fb8b1
@ -22,6 +22,7 @@
|
|||||||
#include <QtNetwork>
|
#include <QtNetwork>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QInputDialog>
|
#include <QInputDialog>
|
||||||
|
#include <QSplashScreen>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// App headers
|
// App headers
|
||||||
@ -50,6 +51,12 @@ int main(int argc, char * argv[])
|
|||||||
QCoreApplication::setOrganizationDomain("pgadmin.org");
|
QCoreApplication::setOrganizationDomain("pgadmin.org");
|
||||||
QCoreApplication::setApplicationName(PGA_APP_NAME);
|
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;
|
quint16 port = 0L;
|
||||||
|
|
||||||
// Find an unused port number. Essentially, we're just reserving one
|
// Find an unused port number. Essentially, we're just reserving one
|
||||||
@ -149,6 +156,7 @@ int main(int argc, char * argv[])
|
|||||||
browserWindow.show();
|
browserWindow.show();
|
||||||
|
|
||||||
// Go!
|
// Go!
|
||||||
|
splash->finish(NULL);
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,5 +4,6 @@
|
|||||||
<file>back.png</file>
|
<file>back.png</file>
|
||||||
<file>forward.png</file>
|
<file>forward.png</file>
|
||||||
<file>close.png</file>
|
<file>close.png</file>
|
||||||
|
<file>splash.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</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