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