Commit b99f1024 authored by Eike Ziller's avatar Eike Ziller

Add search functionality to outline panes

Change-Id: I816f4305c6c09ccbf4ffec8b5071c9b52693e98b
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 6144a0b3
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <cplusplus/OverviewModel.h> #include <cplusplus/OverviewModel.h>
#include <coreplugin/find/treeviewfind.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QDebug> #include <QDebug>
...@@ -99,7 +100,7 @@ CppOutlineWidget::CppOutlineWidget(CPPEditorWidget *editor) : ...@@ -99,7 +100,7 @@ CppOutlineWidget::CppOutlineWidget(CPPEditorWidget *editor) :
QVBoxLayout *layout = new QVBoxLayout; QVBoxLayout *layout = new QVBoxLayout;
layout->setMargin(0); layout->setMargin(0);
layout->setSpacing(0); layout->setSpacing(0);
layout->addWidget(m_treeView); layout->addWidget(Core::TreeViewFind::createSearchableWrapper(m_treeView));
setLayout(layout); setLayout(layout);
m_treeView->setModel(m_proxyModel); m_treeView->setModel(m_proxyModel);
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "qmljseditoreditable.h" #include "qmljseditoreditable.h"
#include "qmljsoutlinetreeview.h" #include "qmljsoutlinetreeview.h"
#include <coreplugin/find/treeviewfind.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/idocument.h> #include <coreplugin/idocument.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
...@@ -109,7 +110,7 @@ QmlJSOutlineWidget::QmlJSOutlineWidget(QWidget *parent) : ...@@ -109,7 +110,7 @@ QmlJSOutlineWidget::QmlJSOutlineWidget(QWidget *parent) :
layout->setMargin(0); layout->setMargin(0);
layout->setSpacing(0); layout->setSpacing(0);
layout->addWidget(m_treeView); layout->addWidget(Core::TreeViewFind::createSearchableWrapper(m_treeView));
m_showBindingsAction = new QAction(this); m_showBindingsAction = new QAction(this);
m_showBindingsAction->setText(tr("Show All Bindings")); m_showBindingsAction->setText(tr("Show All Bindings"));
......
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