diff options
author | con <qtc-committer@nokia.com> | 2010-07-14 14:45:02 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-07-14 14:45:18 +0200 |
commit | 2c25f5ed7a8061ae2eb30f0762c74aef5d69105a (patch) | |
tree | 8b92e014420b59a1be297a1ca2e487f114135b38 /src/plugins/find/basetextfind.h | |
parent | 352b491c87aba787fa1e87d04ea79c282f5b843d (diff) | |
download | qt-creator-2c25f5ed7a8061ae2eb30f0762c74aef5d69105a.tar.gz |
Add replace action. Replace the icons for replace with text-only.
Also show "Replace", "Replace & Find" and "Replace All" in the tool bar,
i.e. don't show the "Replace & Find Previous" in the tool bar to avoid
it getting crowded.
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src/plugins/find/basetextfind.h')
-rw-r--r-- | src/plugins/find/basetextfind.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/find/basetextfind.h b/src/plugins/find/basetextfind.h index c62f5a7282..e2bca51127 100644 --- a/src/plugins/find/basetextfind.h +++ b/src/plugins/find/basetextfind.h @@ -60,6 +60,8 @@ public: Result findIncremental(const QString &txt, IFindSupport::FindFlags findFlags); Result findStep(const QString &txt, IFindSupport::FindFlags findFlags); + void replace(const QString &before, const QString &after, + IFindSupport::FindFlags findFlags); bool replaceStep(const QString &before, const QString &after, IFindSupport::FindFlags findFlags); int replaceAll(const QString &before, const QString &after, @@ -76,6 +78,8 @@ private: bool find(const QString &txt, IFindSupport::FindFlags findFlags, QTextCursor start); + QTextCursor replaceInternal(const QString &before, const QString &after, + IFindSupport::FindFlags findFlags); QTextCursor textCursor() const; void setTextCursor(const QTextCursor&); |