From b8931820d660457889ee8bbe7ab072ee5ab63adb Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Tue, 15 Jan 2019 00:34:24 +0100 Subject: linguist: Replace splash screen image with 128px application icon The "splash screen"/"about linguist" image consisted of a custom-made image with an embedded application icon. Due to the high frequency of changing Qt logos and application icons, this became a maintenance burden. This patch replaces that custom-made image with the 128px application icon. Change-Id: I990d57f7866abcafdb67a21173357b0ad5c6a01e Reviewed-by: Kai Koehne --- src/linguist/linguist/images/splash.png | Bin 11417 -> 0 bytes src/linguist/linguist/linguist.qrc | 2 +- src/linguist/linguist/main.cpp | 2 +- src/linguist/linguist/mainwindow.cpp | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 src/linguist/linguist/images/splash.png diff --git a/src/linguist/linguist/images/splash.png b/src/linguist/linguist/images/splash.png deleted file mode 100644 index 5824fb76c..000000000 Binary files a/src/linguist/linguist/images/splash.png and /dev/null differ diff --git a/src/linguist/linguist/linguist.qrc b/src/linguist/linguist/linguist.qrc index 19a060d25..d3b6dcfc0 100644 --- a/src/linguist/linguist/linguist.qrc +++ b/src/linguist/linguist/linguist.qrc @@ -29,7 +29,6 @@ images/s_check_off.png images/s_check_on.png images/s_check_warning.png - images/splash.png images/up.png images/down.png images/editdelete.png @@ -57,5 +56,6 @@ images/win/undo.png images/win/validateplacemarkers.png images/win/whatsthis.png + images/icons/linguist-128-32.png diff --git a/src/linguist/linguist/main.cpp b/src/linguist/linguist/main.cpp index 3b92dfe1b..0b549b6e0 100644 --- a/src/linguist/linguist/main.cpp +++ b/src/linguist/linguist/main.cpp @@ -142,7 +142,7 @@ int main(int argc, char **argv) QSplashScreen *splash = 0; int screenId = QApplication::desktop()->screenNumber(tmp.geometry().center()); splash = new QSplashScreen(QApplication::desktop()->screen(screenId), - QPixmap(QLatin1String(":/images/splash.png"))); + 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()); diff --git a/src/linguist/linguist/mainwindow.cpp b/src/linguist/linguist/mainwindow.cpp index 6095c17de..fa064beb7 100644 --- a/src/linguist/linguist/mainwindow.cpp +++ b/src/linguist/linguist/mainwindow.cpp @@ -1357,7 +1357,7 @@ void MainWindow::about() QString version = tr("Version %1"); version = version.arg(QLatin1String(QT_VERSION_STR)); - box.setText(tr("

%1

" + box.setText(tr("

%1

" "

Qt Linguist is a tool for adding translations to Qt " "applications.

" "

Copyright (C) %2 The Qt Company Ltd." -- cgit v1.2.3