mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-19 10:43:33 +00:00
fix: Properties Window
Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
@@ -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,12 +20,16 @@
|
|||||||
#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;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace InputCommon {
|
namespace InputCommon {
|
||||||
class InputSubsystem;
|
class InputSubsystem;
|
||||||
}
|
}
|
||||||
|
|
||||||
class ConfigurePerGameAddons;
|
class ConfigurePerGameAddons;
|
||||||
@@ -36,22 +41,14 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
class ConfigurePerGame : public QDialog {
|
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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user