Skip to content

Commit

Permalink
Gui: enable search box in stand alone TreeView dockable
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and wwmayer committed Sep 13, 2020
1 parent 4f5a2e9 commit d6748a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
9 changes: 2 additions & 7 deletions src/Gui/Tree.cpp
Expand Up @@ -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()
Expand Down
3 changes: 0 additions & 3 deletions src/Gui/Tree.h
Expand Up @@ -481,9 +481,6 @@ class TreeDockWidget : public Gui::DockWindow
public:
TreeDockWidget(Gui::Document* pcDocument,QWidget *parent=0);
~TreeDockWidget();

private:
QTreeWidget* treeWidget;
};


Expand Down

0 comments on commit d6748a0

Please sign in to comment.