aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/cppfindreferences.h
diff options
context:
space:
mode:
authorFrancois Ferrand <thetypz@gmail.com>2012-11-30 16:15:07 +0100
committerEike Ziller <eike.ziller@digia.com>2012-12-14 10:22:41 +0100
commit058d2e8cb54d1f5e5c409182ae72fbbd1c96c3cc (patch)
treec5119a151f0c0ee0eb21b17f0ff07cc9dd1f5e01 /src/plugins/cpptools/cppfindreferences.h
parenta8a33b9a3b2bab7660a53919bfbfa011e31755d3 (diff)
Support preserving case when replacing.
When making a case insensitive search, try to keep the string capitalization when doing the replace: - All upper-case matches are replaced with the upper-case new text. - All lower-case matches are replaced with the lower-case new text. - Capitalized matches are replace with the capitalized new text. - Other matches are replaced with the new text as provided. Note: this does not work with regexp replace, only plain text. Change-Id: I87cbc28eb64688bdf3c8c6ec173fcb22f91abcd0 Reviewed-by: Cristian Tibirna <tibirna@kde.org> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.h')
-rw-r--r--src/plugins/cpptools/cppfindreferences.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.h b/src/plugins/cpptools/cppfindreferences.h
index 4f5f9e19ab..d3c979106e 100644
--- a/src/plugins/cpptools/cppfindreferences.h
+++ b/src/plugins/cpptools/cppfindreferences.h
@@ -89,7 +89,7 @@ private Q_SLOTS:
void cancel();
void setPaused(bool paused);
void openEditor(const Find::SearchResultItem &item);
- void onReplaceButtonClicked(const QString &text, const QList<Find::SearchResultItem> &items);
+ void onReplaceButtonClicked(const QString &text, const QList<Find::SearchResultItem> &items, bool preserveCase);
void searchAgain();
private: