mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 02:45:45 +00:00
configuration: Add base class to tabs
Tabs that largely configure SwitchableSetting's are now Tabs and grouped together.
This commit is contained in:
parent
e5b981e1e4
commit
d3b94d64d4
18 changed files with 110 additions and 101 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue