mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 20:18:01 -05:00
configuration: Add base class to tabs
Tabs that largely configure SwitchableSetting's are now Tabs and grouped together.
This commit is contained in:
@ -3,6 +3,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <forward_list>
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
#include <QCheckBox>
|
||||
#include <QComboBox>
|
||||
#include <QWidget>
|
||||
@ -15,11 +18,14 @@ class Tab : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Tab(QWidget* parent = nullptr);
|
||||
explicit Tab(std::shared_ptr<std::forward_list<Tab*>> group_, QWidget* parent = nullptr);
|
||||
~Tab();
|
||||
|
||||
virtual void ApplyConfiguration() = 0;
|
||||
virtual void SetConfiguration() = 0;
|
||||
|
||||
private:
|
||||
std::shared_ptr<std::forward_list<Tab*>> group;
|
||||
};
|
||||
|
||||
constexpr int USE_GLOBAL_INDEX = 0;
|
||||
|
Reference in New Issue
Block a user