Gui: enable search box in stand alone TreeView dockable

This commit is contained in:
Zheng, Lei
2020-09-06 15:12:50 +08:00
committed by wwmayer
parent 4f5a2e923c
commit d6748a030f
2 changed files with 2 additions and 10 deletions

View File

@@ -2919,16 +2919,11 @@ TreeDockWidget::TreeDockWidget(Gui::Document* pcDocument,QWidget *parent)
: DockWindow(pcDocument,parent)
{
setWindowTitle(tr("Tree view"));
this->treeWidget = new TreeWidget("TreeView",this);
this->treeWidget->setRootIsDecorated(false);
int indent = TreeParams::Instance()->Indentation();
if(indent)
this->treeWidget->setIndentation(indent);
auto panel = new TreePanel("TreeView", this);
QGridLayout* pLayout = new QGridLayout(this);
pLayout->setSpacing(0);
pLayout->setMargin (0);
pLayout->addWidget(this->treeWidget, 0, 0 );
pLayout->addWidget(panel, 0, 0 );
}
TreeDockWidget::~TreeDockWidget()

View File

@@ -481,9 +481,6 @@ class TreeDockWidget : public Gui::DockWindow
public:
TreeDockWidget(Gui::Document* pcDocument,QWidget *parent=0);
~TreeDockWidget();
private:
QTreeWidget* treeWidget;
};