SIEdit/app/panels/panel.cpp

22 lines
240 B
C++
Raw Normal View History

2022-06-24 13:46:25 -04:00
#include "panel.h"
Panel::Panel(QWidget *parent)
: QWidget{parent},
data_(nullptr)
{
}
void Panel::SetData(Data *data)
{
if (data_) {
OnClosingData(data_);
}
data_ = data;
if (data_) {
OnOpeningData(data_);
}
}