diff --git a/runtime/pgAdmin4.cpp b/runtime/pgAdmin4.cpp index f8014968f..8cae3f708 100644 --- a/runtime/pgAdmin4.cpp +++ b/runtime/pgAdmin4.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #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(); } diff --git a/runtime/pgAdmin4.qrc b/runtime/pgAdmin4.qrc index 8bb4586d9..c54f4987f 100644 --- a/runtime/pgAdmin4.qrc +++ b/runtime/pgAdmin4.qrc @@ -4,5 +4,6 @@ back.png forward.png close.png + splash.png diff --git a/runtime/splash.png b/runtime/splash.png new file mode 100644 index 000000000..1b37084a1 Binary files /dev/null and b/runtime/splash.png differ