diff options
author | hjk <hjk@qt.io> | 2019-09-11 13:07:28 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-09-11 17:29:45 +0200 |
commit | 01d70a3150191445b043873db2a19474983a411e (patch) | |
tree | b8fdc658da7410019a455858bb52cb79b0efb37c /src/linguist | |
parent | 98d4ae0ad61a3f51d4803d08ab8c16783d822b62 (diff) |
Linguist: Remove splash screen
It starts well below 0.5s, and having the splash screen flicker
around in that time is more of an irritation than it helps.
Change-Id: I30648512714e588fca90f22c175bfcb7dd0f8b40
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/linguist')
-rw-r--r-- | src/linguist/linguist/main.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/linguist/linguist/main.cpp b/src/linguist/linguist/main.cpp index 0b549b6e0..e4eb514a5 100644 --- a/src/linguist/linguist/main.cpp +++ b/src/linguist/linguist/main.cpp @@ -32,13 +32,11 @@ #include <QtCore/QFile> #include <QtCore/QLibraryInfo> #include <QtCore/QLocale> -#include <QtCore/QSettings> #include <QtCore/QTranslator> #include <QtWidgets/QApplication> #include <QtWidgets/QDesktopWidget> #include <QtGui/QPixmap> -#include <QtWidgets/QSplashScreen> #ifdef Q_OS_MAC #include <QtCore/QUrl> @@ -134,28 +132,11 @@ int main(int argc, char **argv) app.setOrganizationName(QLatin1String("QtProject")); app.setApplicationName(QLatin1String("Linguist")); - QSettings config; - - QWidget tmp; - tmp.restoreGeometry(config.value(settingPath("Geometry/WindowGeometry")).toByteArray()); - - QSplashScreen *splash = 0; - int screenId = QApplication::desktop()->screenNumber(tmp.geometry().center()); - splash = new QSplashScreen(QApplication::desktop()->screen(screenId), - QPixmap(QLatin1String(":/images/icons/linguist-128-32.png"))); - if (QApplication::desktop()->isVirtualDesktop()) { - QRect srect(0, 0, splash->width(), splash->height()); - splash->move(QApplication::desktop()->availableGeometry(screenId).center() - srect.center()); - } - splash->setAttribute(Qt::WA_DeleteOnClose); - splash->show(); - MainWindow mw; #ifdef Q_OS_MAC eventFilter.setMainWindow(&mw); #endif // Q_OS_MAC mw.show(); - splash->finish(&mw); QApplication::restoreOverrideCursor(); mw.openFiles(files, true); |