Added find support to ResourceEditor.

Change-Id: Icf3770fde8329d8507befeeef89186f86476749d
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
Konstantin Tokarev
2012-05-05 15:01:15 +04:00
committed by Eike Ziller
parent cad2966498
commit b800aeb3cb
4 changed files with 9 additions and 0 deletions

View File

@@ -36,9 +36,11 @@
#include <qrceditor.h>
#include <aggregation/aggregate.h>
#include <coreplugin/icore.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/documentmanager.h>
#include <find/treeviewfind.h>
#include <utils/reloadpromptutils.h>
#include <utils/fileutils.h>
@@ -85,6 +87,10 @@ ResourceEditorW::ResourceEditorW(const Core::Context &context,
setContext(context);
setWidget(m_resourceEditor);
Aggregation::Aggregate * agg = new Aggregation::Aggregate;
agg->add(m_resourceEditor->treeView());
agg->add(new Find::TreeViewFind(m_resourceEditor->treeView()));
m_resourceEditor->setResourceDragEnabled(true);
m_openWithMenu = m_contextMenu->addMenu(tr("Open With"));
// Below we need QueuedConnection because otherwise, if this qrc file