You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
614 B
C++
34 lines
614 B
C++
#include "MainTreeWidget.h"
|
|
|
|
#include "GUIWidget/TreeWidget.h"
|
|
#include <QTreeWidgetItem>
|
|
|
|
namespace GUI
|
|
{
|
|
MainTreeWidget::MainTreeWidget(MainWindow* parent) :
|
|
PanelWidgetBase(parent)
|
|
{
|
|
this->setTitle(tr("Tree"));
|
|
|
|
_treeWidget = new TreeWidget(this);
|
|
this->setWidget(_treeWidget);
|
|
|
|
init();
|
|
}
|
|
|
|
MainTreeWidget::~MainTreeWidget()
|
|
{
|
|
if (_treeWidget)delete _treeWidget;
|
|
}
|
|
|
|
void MainTreeWidget::init()
|
|
{
|
|
_treeWidget->updateTree();
|
|
}
|
|
|
|
TreeWidget * MainTreeWidget::getTreeWidget()
|
|
{
|
|
return _treeWidget;
|
|
}
|
|
}
|