Add a simple splash screen
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>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Loading…
Reference in New Issue