diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-05-06 01:49:51 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 16:56:07 +0200 |
commit | e5b981e1e45be66c66c5592019b85928a34efbd7 (patch) | |
tree | a4289534a967f6b11887db0b2b93426edfd181cb /src | |
parent | settings: Add a registry of settings (diff) | |
download | yuzu-e5b981e1e45be66c66c5592019b85928a34efbd7.tar yuzu-e5b981e1e45be66c66c5592019b85928a34efbd7.tar.gz yuzu-e5b981e1e45be66c66c5592019b85928a34efbd7.tar.bz2 yuzu-e5b981e1e45be66c66c5592019b85928a34efbd7.tar.lz yuzu-e5b981e1e45be66c66c5592019b85928a34efbd7.tar.xz yuzu-e5b981e1e45be66c66c5592019b85928a34efbd7.tar.zst yuzu-e5b981e1e45be66c66c5592019b85928a34efbd7.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/configuration/configuration_shared.cpp | 9 | ||||
-rw-r--r-- | src/yuzu/configuration/configuration_shared.h | 13 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configuration_shared.cpp b/src/yuzu/configuration/configuration_shared.cpp index 8fd12c9e8..ce12f55a2 100644 --- a/src/yuzu/configuration/configuration_shared.cpp +++ b/src/yuzu/configuration/configuration_shared.cpp @@ -4,10 +4,19 @@ #include <QCheckBox> #include <QObject> #include <QString> +#include <QWidget> #include "common/settings.h" #include "yuzu/configuration/configuration_shared.h" #include "yuzu/configuration/configure_per_game.h" +namespace ConfigurationShared { + +Tab::Tab(QWidget* parent) : QWidget(parent) {} + +Tab::~Tab() {} + +} // namespace ConfigurationShared + void ConfigurationShared::ApplyPerGameSetting(Settings::SwitchableSetting<bool>* setting, const QCheckBox* checkbox, const CheckState& tracker) { diff --git a/src/yuzu/configuration/configuration_shared.h b/src/yuzu/configuration/configuration_shared.h index 1e61bcbeb..ea8b18755 100644 --- a/src/yuzu/configuration/configuration_shared.h +++ b/src/yuzu/configuration/configuration_shared.h @@ -5,10 +5,23 @@ #include <QCheckBox> #include <QComboBox> +#include <QWidget> +#include <qobjectdefs.h> #include "common/settings.h" namespace ConfigurationShared { +class Tab : public QWidget { + Q_OBJECT + +public: + explicit Tab(QWidget* parent = nullptr); + ~Tab(); + + virtual void ApplyConfiguration() = 0; + virtual void SetConfiguration() = 0; +}; + constexpr int USE_GLOBAL_INDEX = 0; constexpr int USE_GLOBAL_SEPARATOR_INDEX = 1; constexpr int USE_GLOBAL_OFFSET = 2; |