forked from qt-creator/qt-creator
Move advanced search dialog into search result pane.
And move the cancel button into the specific search result widget. Change-Id: Ide8173e1ec5de091e1c1332a2b0c47d9a30a4c87 Reviewed-on: http://codereview.qt-project.org/4555 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -928,6 +928,7 @@ void FindReferences::displayResults(int first, int last)
|
||||
m_currentSearch->setInfo(tr("Usages:"), QString(), symbolName);
|
||||
connect(m_currentSearch, SIGNAL(activated(Find::SearchResultItem)),
|
||||
this, SLOT(openEditor(Find::SearchResultItem)));
|
||||
connect(m_currentSearch, SIGNAL(cancelled()), this, SLOT(cancel()));
|
||||
Find::SearchResultWindow::instance()->popup(true);
|
||||
|
||||
Core::ProgressManager *progressManager = Core::ICore::instance()->progressManager();
|
||||
@@ -956,6 +957,11 @@ void FindReferences::searchFinished()
|
||||
emit changed();
|
||||
}
|
||||
|
||||
void FindReferences::cancel()
|
||||
{
|
||||
m_watcher.cancel();
|
||||
}
|
||||
|
||||
void FindReferences::openEditor(const Find::SearchResultItem &item)
|
||||
{
|
||||
if (item.path.size() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user