diff options
| author | Eike Ziller <eike.ziller@nokia.com> | 2012-02-07 12:25:28 +0100 |
|---|---|---|
| committer | hjk <qthjk@ovi.com> | 2012-02-07 15:55:49 +0100 |
| commit | 009797c0634e49d63820c8a8cff8542b4ffacca8 (patch) | |
| tree | 9aa270bf94ed860babe0bb92238a63121f2a39d2 | |
| parent | eb1e89a419c0a2c4f553dcb5818ff54843fd48e3 (diff) | |
| download | qt-creator-009797c0634e49d63820c8a8cff8542b4ffacca8.tar.gz | |
Make search history larger.
Change-Id: Ib7d61aaa14e33860da8b6234d9e8ae779be29cd1
Reviewed-by: hjk <qthjk@ovi.com>
| -rw-r--r-- | src/plugins/find/searchresultwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/find/searchresultwindow.cpp b/src/plugins/find/searchresultwindow.cpp index 73e0ac65fb..4c6425175b 100644 --- a/src/plugins/find/searchresultwindow.cpp +++ b/src/plugins/find/searchresultwindow.cpp @@ -53,6 +53,7 @@ static const char SETTINGSKEYSECTIONNAME[] = "SearchResults"; static const char SETTINGSKEYEXPANDRESULTS[] = "ExpandResults"; +static const int MAX_SEARCH_HISTORY = 12; namespace Find { @@ -329,7 +330,7 @@ SearchResult *SearchResultWindow::startNewSearch(const QString &label, SearchMode searchOrSearchAndReplace, const QString &cfgGroup) { - if (d->m_searchResults.size() >= 5) { + if (d->m_searchResults.size() >= MAX_SEARCH_HISTORY) { d->m_searchResultWidgets.last()->notifyVisibilityChanged(false); delete d->m_searchResults.takeLast(); delete d->m_searchResultWidgets.takeLast(); |
