configuration: Add base class to tabs

Tabs that largely configure SwitchableSetting's are now Tabs and grouped
together.
This commit is contained in:
lat9nq
2023-05-05 23:30:59 -04:00
parent e5b981e1e4
commit d3b94d64d4
18 changed files with 110 additions and 101 deletions

View File

@ -1,6 +1,7 @@
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include <memory>
#include <QCheckBox>
#include <QObject>
#include <QString>
@ -11,9 +12,14 @@
namespace ConfigurationShared {
Tab::Tab(QWidget* parent) : QWidget(parent) {}
Tab::Tab(std::shared_ptr<std::forward_list<Tab*>> group_, QWidget* parent)
: QWidget(parent), group{group_} {
if (group != nullptr) {
group->push_front(this);
}
}
Tab::~Tab() {}
Tab::~Tab() = default;
} // namespace ConfigurationShared