forked from suyu/suyu
config_shared: Remove storing the group from tab
This commit is contained in:
parent
fdbeb84168
commit
02c48a80f6
2 changed files with 2 additions and 6 deletions
|
@ -7,8 +7,7 @@
|
||||||
|
|
||||||
namespace ConfigurationShared {
|
namespace ConfigurationShared {
|
||||||
|
|
||||||
Tab::Tab(std::shared_ptr<std::forward_list<Tab*>> group_, QWidget* parent)
|
Tab::Tab(std::shared_ptr<std::forward_list<Tab*>> group, QWidget* parent) : QWidget(parent) {
|
||||||
: QWidget(parent), group{group_} {
|
|
||||||
if (group != nullptr) {
|
if (group != nullptr) {
|
||||||
group->push_front(this);
|
group->push_front(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,14 +17,11 @@ class Tab : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Tab(std::shared_ptr<std::forward_list<Tab*>> group_, QWidget* parent = nullptr);
|
explicit Tab(std::shared_ptr<std::forward_list<Tab*>> group, QWidget* parent = nullptr);
|
||||||
~Tab();
|
~Tab();
|
||||||
|
|
||||||
virtual void ApplyConfiguration() = 0;
|
virtual void ApplyConfiguration() = 0;
|
||||||
virtual void SetConfiguration() = 0;
|
virtual void SetConfiguration() = 0;
|
||||||
|
|
||||||
private:
|
|
||||||
std::shared_ptr<std::forward_list<Tab*>> group;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ConfigurationShared
|
} // namespace ConfigurationShared
|
||||||
|
|
Loading…
Reference in a new issue