mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 22:58:39 +00:00
add window icon
This commit is contained in:
parent
ffb2a583f9
commit
e55018f99e
5 changed files with 12 additions and 0 deletions
|
@ -11,5 +11,6 @@ Files: CMakeSettings.json
|
||||||
.gitmodules
|
.gitmodules
|
||||||
src/images/shadps4.ico
|
src/images/shadps4.ico
|
||||||
src/shadps4.rc
|
src/shadps4.rc
|
||||||
|
src/resources.qrc
|
||||||
Copyright: shadPS4 Emulator Project
|
Copyright: shadPS4 Emulator Project
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
|
|
|
@ -17,6 +17,7 @@ option(ENABLE_QT_GUI "Enable the Qt GUI. If not selected then the emulator uses
|
||||||
if(ENABLE_QT_GUI)
|
if(ENABLE_QT_GUI)
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Widgets Concurrent)
|
find_package(Qt6 REQUIRED COMPONENTS Widgets Concurrent)
|
||||||
qt_standard_project_setup()
|
qt_standard_project_setup()
|
||||||
|
set(CMAKE_AUTORCC ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# This function should be passed a list of all files in a target. It will automatically generate
|
# This function should be passed a list of all files in a target. It will automatically generate
|
||||||
|
@ -166,6 +167,7 @@ if(ENABLE_QT_GUI)
|
||||||
src/qt_gui/main_window_themes.cpp
|
src/qt_gui/main_window_themes.cpp
|
||||||
src/qt_gui/main_window_themes.h
|
src/qt_gui/main_window_themes.h
|
||||||
src/qt_gui/main.cpp
|
src/qt_gui/main.cpp
|
||||||
|
src/resources.qrc
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ GameInstallDialog::GameInstallDialog(std::shared_ptr<GuiSettings> gui_settings)
|
||||||
layout->addWidget(SetupDialogActions());
|
layout->addWidget(SetupDialogActions());
|
||||||
|
|
||||||
setWindowTitle("Shadps4 - Choose directory");
|
setWindowTitle("Shadps4 - Choose directory");
|
||||||
|
setWindowIcon(QIcon(":/images/shadps4.ico"));
|
||||||
}
|
}
|
||||||
|
|
||||||
GameInstallDialog::~GameInstallDialog() {}
|
GameInstallDialog::~GameInstallDialog() {}
|
||||||
|
|
|
@ -64,6 +64,9 @@ public:
|
||||||
if (MainWindow->objectName().isEmpty())
|
if (MainWindow->objectName().isEmpty())
|
||||||
MainWindow->setObjectName("MainWindow");
|
MainWindow->setObjectName("MainWindow");
|
||||||
MainWindow->resize(1058, 580);
|
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);
|
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||||
sizePolicy.setHorizontalStretch(0);
|
sizePolicy.setHorizontalStretch(0);
|
||||||
sizePolicy.setVerticalStretch(0);
|
sizePolicy.setVerticalStretch(0);
|
||||||
|
|
5
src/resources.qrc
Normal file
5
src/resources.qrc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<RCC>
|
||||||
|
<qresource prefix="/images">
|
||||||
|
<file alias="shadps4.ico">images/shadps4.ico</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
Loading…
Add table
Add a link
Reference in a new issue