diff options
| author | 2023-06-20 19:34:50 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:55 -0400 | |
| commit | 02c48a80f6f8f88716cdacbfb62643d04632949a (patch) | |
| tree | c88957682cc66840315cd31ab3207587c659bca2 /src | |
| parent | settings,uisettings: Remove leading underscore (diff) | |
| download | yuzu-02c48a80f6f8f88716cdacbfb62643d04632949a.tar.gz yuzu-02c48a80f6f8f88716cdacbfb62643d04632949a.tar.xz yuzu-02c48a80f6f8f88716cdacbfb62643d04632949a.zip | |
config_shared: Remove storing the group from tab
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/configuration/configuration_shared.cpp | 3 | ||||
| -rw-r--r-- | src/yuzu/configuration/configuration_shared.h | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/yuzu/configuration/configuration_shared.cpp b/src/yuzu/configuration/configuration_shared.cpp index d3cfacf48..8c12d063e 100644 --- a/src/yuzu/configuration/configuration_shared.cpp +++ b/src/yuzu/configuration/configuration_shared.cpp | |||
| @@ -7,8 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | namespace ConfigurationShared { | 8 | namespace ConfigurationShared { |
| 9 | 9 | ||
| 10 | Tab::Tab(std::shared_ptr<std::forward_list<Tab*>> group_, QWidget* parent) | 10 | Tab::Tab(std::shared_ptr<std::forward_list<Tab*>> group, QWidget* parent) : QWidget(parent) { |
| 11 | : QWidget(parent), group{group_} { | ||
| 12 | if (group != nullptr) { | 11 | if (group != nullptr) { |
| 13 | group->push_front(this); | 12 | group->push_front(this); |
| 14 | } | 13 | } |
diff --git a/src/yuzu/configuration/configuration_shared.h b/src/yuzu/configuration/configuration_shared.h index 5313bfb4f..2a084b584 100644 --- a/src/yuzu/configuration/configuration_shared.h +++ b/src/yuzu/configuration/configuration_shared.h | |||
| @@ -17,14 +17,11 @@ class Tab : public QWidget { | |||
| 17 | Q_OBJECT | 17 | Q_OBJECT |
| 18 | 18 | ||
| 19 | public: | 19 | public: |
| 20 | explicit Tab(std::shared_ptr<std::forward_list<Tab*>> group_, QWidget* parent = nullptr); | 20 | explicit Tab(std::shared_ptr<std::forward_list<Tab*>> group, QWidget* parent = nullptr); |
| 21 | ~Tab(); | 21 | ~Tab(); |
| 22 | 22 | ||
| 23 | virtual void ApplyConfiguration() = 0; | 23 | virtual void ApplyConfiguration() = 0; |
| 24 | virtual void SetConfiguration() = 0; | 24 | virtual void SetConfiguration() = 0; |
| 25 | |||
| 26 | private: | ||
| 27 | std::shared_ptr<std::forward_list<Tab*>> group; | ||
| 28 | }; | 25 | }; |
| 29 | 26 | ||
| 30 | } // namespace ConfigurationShared | 27 | } // namespace ConfigurationShared |