mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-12-11 08:11:26 -05:00
29 lines
423 B
C++
29 lines
423 B
C++
#include "panel.h"
|
|
|
|
Panel::Panel(QWidget *parent) :
|
|
QWidget{parent},
|
|
chunk_(nullptr)
|
|
{
|
|
outer_layout_ = new QVBoxLayout(this);
|
|
|
|
layout_ = new QGridLayout();
|
|
outer_layout_->addLayout(layout_);
|
|
}
|
|
|
|
void Panel::SetData(si::Chunk *chunk)
|
|
{
|
|
if (chunk_) {
|
|
OnClosingData(chunk_);
|
|
}
|
|
|
|
chunk_ = chunk;
|
|
|
|
if (chunk_) {
|
|
OnOpeningData(chunk_);
|
|
}
|
|
}
|
|
|
|
void Panel::FinishLayout()
|
|
{
|
|
outer_layout_->addStretch();
|
|
}
|