diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2011-08-09 11:08:01 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2011-08-09 15:44:31 +0200 |
commit | b1c881ceaa7796553aee5f205ac30641d7827346 (patch) | |
tree | 2d35aea722021058c0df4901c36deeef713d067f /src/plugins/texteditor/basefilefind.h | |
parent | 86e2b7248643ab26bd5c8b90d3b768b4405337f3 (diff) |
Highlight matches when opening editor from advanced text search.
When you close the search pane it will remove the highlight, even if the
find tool bar is open with a different search, though.
Task-number: QTCREATORBUG-2606
Change-Id: I7defe15c844d37ae80ab66c6b9e68e1ef1afdf92
Reviewed-on: http://codereview.qt.nokia.com/2786
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/basefilefind.h')
-rw-r--r-- | src/plugins/texteditor/basefilefind.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/texteditor/basefilefind.h b/src/plugins/texteditor/basefilefind.h index 9cde6378bdb..de6e1c0b3af 100644 --- a/src/plugins/texteditor/basefilefind.h +++ b/src/plugins/texteditor/basefilefind.h @@ -36,6 +36,8 @@ #include "texteditor_global.h" #include <find/ifindfilter.h> +#include <find/ifindsupport.h> +#include <find/searchresultwindow.h> #include <utils/filesearch.h> #include <QtCore/QFutureWatcher> @@ -88,13 +90,19 @@ private slots: void openEditor(const Find::SearchResultItem &item); void doReplace(const QString &txt, const QList<Find::SearchResultItem> &items); + void hideHighlightAll(bool visible); private: QWidget *createProgressWidget(); + void runNewSearch(const QString &txt, Find::FindFlags findFlags, + Find::SearchResultWindow::SearchMode searchMode); Find::SearchResultWindow *m_resultWindow; + QFutureWatcher<Utils::FileSearchResultList> m_watcher; bool m_isSearching; + QPointer<Find::IFindSupport> m_currentFindSupport; + QLabel *m_resultLabel; QStringListModel m_filterStrings; QString m_filterSetting; |