summaryrefslogtreecommitdiff
path: root/src/plugins/qmljseditor/qmljsfindreferences.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-06-27 22:25:11 +0300
committerOrgad Shaneh <orgads@gmail.com>2016-06-28 08:47:26 +0000
commit7609e56ee365520011920eee07e7e7c876eb5683 (patch)
treea84a40889c3906913f87a5aac481503689bb3b37 /src/plugins/qmljseditor/qmljsfindreferences.cpp
parent090c1069297883fd4073152d0c62fd4c8e08afb3 (diff)
downloadqt-creator-7609e56ee365520011920eee07e7e7c876eb5683.tar.gz
QmlJS[|Editor|Tools]: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I56550546b341d486d321329e9a90b9369d56af40 Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Diffstat (limited to 'src/plugins/qmljseditor/qmljsfindreferences.cpp')
-rw-r--r--src/plugins/qmljseditor/qmljsfindreferences.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/qmljseditor/qmljsfindreferences.cpp b/src/plugins/qmljseditor/qmljsfindreferences.cpp
index 6c7ff6eb13..8927407c87 100644
--- a/src/plugins/qmljseditor/qmljsfindreferences.cpp
+++ b/src/plugins/qmljseditor/qmljsfindreferences.cpp
@@ -782,8 +782,8 @@ FindReferences::FindReferences(QObject *parent)
: QObject(parent)
{
m_watcher.setPendingResultsLimit(1);
- connect(&m_watcher, SIGNAL(resultsReadyAt(int,int)), this, SLOT(displayResults(int,int)));
- connect(&m_watcher, SIGNAL(finished()), this, SLOT(searchFinished()));
+ connect(&m_watcher, &QFutureWatcherBase::resultsReadyAt, this, &FindReferences::displayResults);
+ connect(&m_watcher, &QFutureWatcherBase::finished, this, &FindReferences::searchFinished);
}
FindReferences::~FindReferences()
@@ -955,19 +955,19 @@ void FindReferences::displayResults(int first, int last)
label, QString(), symbolName, SearchResultWindow::SearchAndReplace,
SearchResultWindow::PreserveCaseDisabled);
m_currentSearch->setTextToReplace(replacement);
- connect(m_currentSearch, SIGNAL(replaceButtonClicked(QString,QList<Core::SearchResultItem>,bool)),
- SLOT(onReplaceButtonClicked(QString,QList<Core::SearchResultItem>,bool)));
+ connect(m_currentSearch.data(), &SearchResult::replaceButtonClicked,
+ this, &FindReferences::onReplaceButtonClicked);
}
- connect(m_currentSearch, SIGNAL(activated(Core::SearchResultItem)),
- this, SLOT(openEditor(Core::SearchResultItem)));
- connect(m_currentSearch, SIGNAL(cancelled()), this, SLOT(cancel()));
- connect(m_currentSearch, SIGNAL(paused(bool)), this, SLOT(setPaused(bool)));
+ connect(m_currentSearch.data(), &SearchResult::activated,
+ this, &FindReferences::openEditor);
+ connect(m_currentSearch.data(), &SearchResult::cancelled, this, &FindReferences::cancel);
+ connect(m_currentSearch.data(), &SearchResult::paused, this, &FindReferences::setPaused);
SearchResultWindow::instance()->popup(IOutputPane::Flags(IOutputPane::ModeSwitch | IOutputPane::WithFocus));
FutureProgress *progress = ProgressManager::addTask(
m_watcher.future(), tr("Searching for Usages"),
QmlJSEditor::Constants::TASK_SEARCH);
- connect(progress, SIGNAL(clicked()), m_currentSearch, SLOT(popup()));
+ connect(progress, &FutureProgress::clicked, m_currentSearch.data(), &SearchResult::popup);
++first;
}