# HG changeset patch # User Andre Heinecke # Date 1430987827 -7200 # Node ID 07744e2765799d928e059eac17ab7ee11a23e16d # Parent 60cee4bdee5bf49551cb1722936cdb59ffe293bc Add icon also for non Windows systems diff -r 60cee4bdee5b -r 07744e276579 src/CMakeLists.txt --- a/src/CMakeLists.txt Thu May 07 10:23:19 2015 +0200 +++ b/src/CMakeLists.txt Thu May 07 10:37:07 2015 +0200 @@ -58,8 +58,8 @@ endif() set(QT_RESOURCES - ${CMAKE_CURRENT_SOURCE_DIR}/fonts.qrc - # ${CMAKE_SOURCE_DIR}/img/icons.qrc + fonts.qrc + icons/icons.qrc ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") diff -r 60cee4bdee5b -r 07744e276579 src/folderselectdialog.cpp --- a/src/folderselectdialog.cpp Thu May 07 10:23:19 2015 +0200 +++ b/src/folderselectdialog.cpp Thu May 07 10:37:07 2015 +0200 @@ -46,6 +46,10 @@ mPathLabel->setText("" + pathLabel + ": "); } setFolder(mCurFolder); +#ifndef Q_OS_WIN + QIcon windowIcon = QIcon(":/icon-64.png"); + setWindowIcon(windowIcon); +#endif } void FolderSelectDialog::setupGUI() { diff -r 60cee4bdee5b -r 07744e276579 src/icons/icons.qrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/icons/icons.qrc Thu May 07 10:37:07 2015 +0200 @@ -0,0 +1,5 @@ + + + 64_icon.png + + diff -r 60cee4bdee5b -r 07744e276579 src/l10n/main_de_DE.ts --- a/src/l10n/main_de_DE.ts Thu May 07 10:23:19 2015 +0200 +++ b/src/l10n/main_de_DE.ts Thu May 07 10:37:07 2015 +0200 @@ -17,32 +17,32 @@ FolderSelectDialog - + Select folder Ordner auswählen - + Go - + Ok Ok - + The following folders did not match the pattern: %1 Die folgenden Order entsprechen nicht dem Schema: %1 - + Failed to parse some folders. Einige Ordnernamen konnten nicht verarbeitet werden. - + Select %1 Bitte das %1 auswählen @@ -50,52 +50,52 @@ MainWindow - + Player Player - + Filter/Details Filter/Details - + Error! Fehler! - + Failed to access directory: '%1' Auf das Verzeichnis '%1' konnte nicht zugegriffen werden. - + Failed to access meta data file: '%1' Auf die Metadaten-Datei: '%1' konnte nicht zugegriffen werden. - + Parsed: '%1' '%1' eingelesen - + Showing: '%1' Zeige: '%1' - + Persons Personen - + Exams Prüfungen - + Root-Path Wurzelverzeichnis diff -r 60cee4bdee5b -r 07744e276579 src/mainwindow.cpp --- a/src/mainwindow.cpp Thu May 07 10:23:19 2015 +0200 +++ b/src/mainwindow.cpp Thu May 07 10:37:07 2015 +0200 @@ -45,9 +45,10 @@ readSettings(); setAcceptDrops(true); setupShortcuts(); - //QIcon windowIcon = QIcon(":/icon-64.png"); - //setWindowIcon(windowIcon); - +#ifndef Q_OS_WIN + QIcon windowIcon = QIcon(":/icon-64.png"); + setWindowIcon(windowIcon); +#endif } void MainWindow::setupGUI() {