mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-06 07:06:00 +00:00
add window icons (#92)
This commit is contained in:
parent
c8e79b34a1
commit
0645dbb610
|
@ -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
|
||||||
|
|
|
@ -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() {}
|
||||||
|
|
|
@ -71,6 +71,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);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
|
<file>images/shadps4.ico</file>
|
||||||
<file>images/play_icon.png</file>
|
<file>images/play_icon.png</file>
|
||||||
<file>images/pause_icon.png</file>
|
<file>images/pause_icon.png</file>
|
||||||
<file>images/stop_icon.png</file>
|
<file>images/stop_icon.png</file>
|
||||||
|
|
Loading…
Reference in a new issue