diff --git a/.reuse/dep5 b/.reuse/dep5 index 8135bbb3..06a93f77 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -26,6 +26,6 @@ Files: CMakeSettings.json src/images/stop_icon.png src/images/themes_icon.png src/shadps4.rc - src/shadps4.qrc + src/resources.qrc Copyright: shadPS4 Emulator Project License: GPL-2.0-or-later diff --git a/CMakeLists.txt b/CMakeLists.txt index 9908c757..0eb4ca75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ option(ENABLE_QT_GUI "Enable the Qt GUI. If not selected then the emulator uses if(ENABLE_QT_GUI) find_package(Qt6 REQUIRED COMPONENTS Widgets Concurrent) qt_standard_project_setup() + set(CMAKE_AUTORCC ON) endif() # This function should be passed a list of all files in a target. It will automatically generate diff --git a/src/qt_gui/game_install_dialog.cpp b/src/qt_gui/game_install_dialog.cpp index 1fa6880b..3ae78da9 100644 --- a/src/qt_gui/game_install_dialog.cpp +++ b/src/qt_gui/game_install_dialog.cpp @@ -24,6 +24,7 @@ GameInstallDialog::GameInstallDialog(std::shared_ptr gui_settings) layout->addWidget(SetupDialogActions()); setWindowTitle("Shadps4 - Choose directory"); + setWindowIcon(QIcon(":/images/shadps4.ico")); } GameInstallDialog::~GameInstallDialog() {} diff --git a/src/qt_gui/main_window_ui.h b/src/qt_gui/main_window_ui.h index c6a3b3af..6133c49e 100644 --- a/src/qt_gui/main_window_ui.h +++ b/src/qt_gui/main_window_ui.h @@ -71,6 +71,9 @@ public: if (MainWindow->objectName().isEmpty()) MainWindow->setObjectName("MainWindow"); MainWindow->resize(1058, 580); + QIcon icon; + icon.addFile(QString::fromUtf8(":/images/shadps4.ico"), QSize(), QIcon::Normal, QIcon::Off); + MainWindow->setWindowIcon(icon); QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); sizePolicy.setHorizontalStretch(0); sizePolicy.setVerticalStretch(0); diff --git a/src/resources.qrc b/src/resources.qrc new file mode 100644 index 00000000..2d98b4f6 --- /dev/null +++ b/src/resources.qrc @@ -0,0 +1,5 @@ + + + images/shadps4.ico + +