From 106da2041dbee7f23e99ce82a88d7c1e3207b3d4 Mon Sep 17 00:00:00 2001 From: Reinder Feenstra Date: Tue, 4 May 2021 23:37:00 +0200 Subject: [PATCH] added application icon to client --- client/CMakeLists.txt | 4 ++- client/gfx/appicon.svg | 66 +++++++++++++++++++++++++++++++++++++++ client/gfx/common.qrc | 5 +++ client/src/mainwindow.cpp | 1 + 4 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 client/gfx/appicon.svg create mode 100644 client/gfx/common.qrc diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index b5305e41..92179b4e 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -12,7 +12,9 @@ set(CMAKE_AUTOUIC ON) configure_file(../shared/src/traintastic/version.hpp.in version.hpp) -add_executable(traintastic-client dark.qrc) +add_executable(traintastic-client + gfx/common.qrc + dark.qrc) add_definitions(-DQT_DEPRECATED_WARNINGS) diff --git a/client/gfx/appicon.svg b/client/gfx/appicon.svg new file mode 100644 index 00000000..39600d0e --- /dev/null +++ b/client/gfx/appicon.svg @@ -0,0 +1,66 @@ + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/client/gfx/common.qrc b/client/gfx/common.qrc new file mode 100644 index 00000000..b4f9399a --- /dev/null +++ b/client/gfx/common.qrc @@ -0,0 +1,5 @@ + + + appicon.svg + + diff --git a/client/src/mainwindow.cpp b/client/src/mainwindow.cpp index b39c525b..7836d46b 100644 --- a/client/src/mainwindow.cpp +++ b/client/src/mainwindow.cpp @@ -74,6 +74,7 @@ MainWindow::MainWindow(QWidget* parent) : { instance = this; + setWindowIcon(QIcon(":/appicon.svg")); updateWindowTitle(); QMenu* menu;