fix: Properties Window

Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
Collecting
2025-10-29 08:53:56 +00:00
parent edadec9cfb
commit e4055ab003

View File

@@ -10,6 +10,7 @@
#include <QDialog> #include <QDialog>
#include <QList> #include <QList>
#include <QPixmap>
#include "configuration/shared_widget.h" #include "configuration/shared_widget.h"
#include "core/file_sys/vfs/vfs_types.h" #include "core/file_sys/vfs/vfs_types.h"
@@ -19,6 +20,10 @@
#include "citron/configuration/qt_config.h" #include "citron/configuration/qt_config.h"
#include "citron/configuration/shared_translation.h" #include "citron/configuration/shared_translation.h"
class QButtonGroup;
class QGraphicsScene;
class QTimer;
namespace Core { namespace Core {
class System; class System;
} }
@@ -36,13 +41,6 @@ class ConfigureInputPerGame;
class ConfigureLinuxTab; class ConfigureLinuxTab;
class ConfigureSystem; class ConfigureSystem;
class QGraphicsScene;
class QStandardItem;
class QStandardItemModel;
class QTreeView;
class QVBoxLayout;
class QTimer; // Forward declaration for the timer
namespace Ui { namespace Ui {
class ConfigurePerGame; class ConfigurePerGame;
} }
@@ -51,7 +49,6 @@ class ConfigurePerGame : public QDialog {
Q_OBJECT Q_OBJECT
public: public:
// Cannot use std::filesystem::path due to https://bugreports.qt.io/browse/QTBUG-73263
explicit ConfigurePerGame(QWidget* parent, u64 title_id_, const std::string& file_name_, explicit ConfigurePerGame(QWidget* parent, u64 title_id_, const std::string& file_name_,
std::vector<VkDeviceInfo::Record>& vk_device_records, std::vector<VkDeviceInfo::Record>& vk_device_records,
Core::System& system_); Core::System& system_);
@@ -64,13 +61,14 @@ public slots:
void accept() override; void accept() override;
void OnTrimXCI(); void OnTrimXCI();
protected:
void resizeEvent(QResizeEvent* event) override;
private: private:
void changeEvent(QEvent* event) override; void changeEvent(QEvent* event) override;
void RetranslateUI(); void RetranslateUI();
void HandleApplyButtonClicked(); void HandleApplyButtonClicked();
void LoadConfiguration(); void LoadConfiguration();
// New, efficient theme update functions
void ApplyStaticTheme(); void ApplyStaticTheme();
void UpdateTheme(); void UpdateTheme();
@@ -97,4 +95,7 @@ private:
QTimer* rainbow_timer; QTimer* rainbow_timer;
float rainbow_hue = 0.0f; float rainbow_hue = 0.0f;
QButtonGroup* button_group;
QPixmap map;
}; };