mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-11-23 15:48:03 -05:00
22 lines
240 B
C++
22 lines
240 B
C++
|
#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_);
|
||
|
}
|
||
|
}
|