diff options
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 @@ | |||
| 4 | #include <QCheckBox> | 4 | #include <QCheckBox> |
| 5 | #include <QObject> | 5 | #include <QObject> |
| 6 | #include <QString> | 6 | #include <QString> |
| 7 | #include <QWidget> | ||
| 7 | #include "common/settings.h" | 8 | #include "common/settings.h" |
| 8 | #include "yuzu/configuration/configuration_shared.h" | 9 | #include "yuzu/configuration/configuration_shared.h" |
| 9 | #include "yuzu/configuration/configure_per_game.h" | 10 | #include "yuzu/configuration/configure_per_game.h" |
| 10 | 11 | ||
| 12 | namespace ConfigurationShared { | ||
| 13 | |||
| 14 | Tab::Tab(QWidget* parent) : QWidget(parent) {} | ||
| 15 | |||
| 16 | Tab::~Tab() {} | ||
| 17 | |||
| 18 | } // namespace ConfigurationShared | ||
| 19 | |||
| 11 | void ConfigurationShared::ApplyPerGameSetting(Settings::SwitchableSetting<bool>* setting, | 20 | void ConfigurationShared::ApplyPerGameSetting(Settings::SwitchableSetting<bool>* setting, |
| 12 | const QCheckBox* checkbox, | 21 | const QCheckBox* checkbox, |
| 13 | const CheckState& tracker) { | 22 | 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 @@ | |||
| 5 | 5 | ||
| 6 | #include <QCheckBox> | 6 | #include <QCheckBox> |
| 7 | #include <QComboBox> | 7 | #include <QComboBox> |
| 8 | #include <QWidget> | ||
| 9 | #include <qobjectdefs.h> | ||
| 8 | #include "common/settings.h" | 10 | #include "common/settings.h" |
| 9 | 11 | ||
| 10 | namespace ConfigurationShared { | 12 | namespace ConfigurationShared { |
| 11 | 13 | ||
| 14 | class Tab : public QWidget { | ||
| 15 | Q_OBJECT | ||
| 16 | |||
| 17 | public: | ||
| 18 | explicit Tab(QWidget* parent = nullptr); | ||
| 19 | ~Tab(); | ||
| 20 | |||
| 21 | virtual void ApplyConfiguration() = 0; | ||
| 22 | virtual void SetConfiguration() = 0; | ||
| 23 | }; | ||
| 24 | |||
| 12 | constexpr int USE_GLOBAL_INDEX = 0; | 25 | constexpr int USE_GLOBAL_INDEX = 0; |
| 13 | constexpr int USE_GLOBAL_SEPARATOR_INDEX = 1; | 26 | constexpr int USE_GLOBAL_SEPARATOR_INDEX = 1; |
| 14 | constexpr int USE_GLOBAL_OFFSET = 2; | 27 | constexpr int USE_GLOBAL_OFFSET = 2; |