forked from qt-creator/qt-creator
Added find support to ResourceEditor.
Change-Id: Icf3770fde8329d8507befeeef89186f86476749d Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
cad2966498
commit
b800aeb3cb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user