Commit df47e5f6 authored by Eike Ziller's avatar Eike Ziller
Browse files

Add search to class view



Change-Id: I7796a5856b4d299c6593df8a8af762dec4da60f2
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent ce250a7b
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include "classviewutils.h" #include "classviewutils.h"
#include "classviewconstants.h" #include "classviewconstants.h"
#include <coreplugin/find/treeviewfind.h>
#include <utils/navigationtreeview.h> #include <utils/navigationtreeview.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
...@@ -97,7 +98,8 @@ NavigationWidget::NavigationWidget(QWidget *parent) : ...@@ -97,7 +98,8 @@ NavigationWidget::NavigationWidget(QWidget *parent) :
verticalLayout->setContentsMargins(0, 0, 0, 0); verticalLayout->setContentsMargins(0, 0, 0, 0);
treeView = new ::Utils::NavigationTreeView(this); treeView = new ::Utils::NavigationTreeView(this);
treeView->setEditTriggers(QAbstractItemView::NoEditTriggers); treeView->setEditTriggers(QAbstractItemView::NoEditTriggers);
verticalLayout->addWidget(treeView); verticalLayout->addWidget(Core::TreeViewFind::createSearchableWrapper(
treeView, Core::TreeViewFind::FetchMoreWhileSearching));
// tree model // tree model
treeModel = new TreeItemModel(this); treeModel = new TreeItemModel(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment