Commit e075d235 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Rename variable

parent b434f0e3
......@@ -51,7 +51,7 @@ int FindUtils::replaceAll(QTextEdit *view, const QString &str, const QString &re
return count;
}
int FindUtils::replaceAll(QPlainTextEdit *view, const QString &str, const QString &replaceWidget, QTextDocument::FindFlags searchOptions)
int FindUtils::replaceAll(QPlainTextEdit *view, const QString &str, const QString &replaceStr, QTextDocument::FindFlags searchOptions)
{
auto document = view->document();
QTextCursor c(document);
......@@ -63,7 +63,7 @@ int FindUtils::replaceAll(QPlainTextEdit *view, const QString &str, const QStrin
c = document->find(str, c, flags);
if (!c.isNull()) {
// find() selects found text, and insertText() replaces selection
c.insertText(replaceWidget);
c.insertText(replaceStr);
count++;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment