Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KPimTextEdit
Commits
ec24b93f
Commit
ec24b93f
authored
Mar 03, 2022
by
Laurent Montel
Browse files
Debug--
parent
88ccb191
Pipeline
#144316
passed with stages
in 5 minutes and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/texteditor/commonwidget/findutils.cpp
View file @
ec24b93f
...
...
@@ -33,7 +33,6 @@ QTextDocument::FindFlags FindUtils::convertTextEditFindFlags(TextEditFindBarBase
int
FindUtils
::
replaceAll
(
QTextEdit
*
view
,
const
QString
&
str
,
const
QString
&
replaceWidget
,
QTextDocument
::
FindFlags
searchOptions
)
{
qDebug
()
<<
" SSSSSSSSSSSSSSSSSSs"
;
auto
document
=
view
->
document
();
QTextCursor
c
(
document
);
c
.
beginEditBlock
();
...
...
@@ -45,7 +44,6 @@ int FindUtils::replaceAll(QTextEdit *view, const QString &str, const QString &re
if
(
!
c
.
isNull
())
{
// find() selects found text, and insertText() replaces selection
c
.
insertText
(
replaceWidget
);
qDebug
()
<<
" replaceWidget "
<<
replaceWidget
;
count
++
;
}
else
{
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment