CppFindReferences: Simplify code

Get rid of the need to manage a map of QFutureWatcher -> SearchResult

Change-Id: I1a87eccfff9149f2ddfdd2f72bb5e4b07ee81ce3
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Eike Ziller
2016-10-24 15:01:45 +02:00
parent a8456c16e8
commit 5b3aa93320
2 changed files with 17 additions and 49 deletions

View File

@@ -71,10 +71,6 @@ public:
void renameMacroUses(const CPlusPlus::Macro &macro, const QString &replacement = QString());
private:
void displayResults(int first, int last);
void searchFinished();
void cancel();
void setPaused(bool paused);
void openEditor(const Core::SearchResultItem &item);
void onReplaceButtonClicked(const QString &text, const QList<Core::SearchResultItem> &items, bool preserveCase);
void searchAgain();
@@ -91,7 +87,6 @@ private:
private:
QPointer<CppModelManager> m_modelManager;
QMap<QFutureWatcher<CPlusPlus::Usage> *, QPointer<Core::SearchResult> > m_watchers;
};
} // namespace Internal