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
Utilities
Kate
Commits
62774ebc
Commit
62774ebc
authored
Dec 15, 2020
by
Waqar Ahmed
Committed by
Christoph Cullmann
Dec 15, 2020
Browse files
Improve search performance
parent
349d8296
Changes
1
Show whitespace changes
Inline
Side-by-side
addons/search/plugin_search.cpp
View file @
62774ebc
...
...
@@ -978,6 +978,8 @@ void KatePluginSearchView::matchFound(const QString &url, const QString &fName,
row
<<
i18n
(
"Line: <b>%1</b> Column: <b>%2</b>: %3"
,
startLine
+
1
,
startColumn
+
1
,
pre
+
QStringLiteral
(
"<b>"
)
+
match
+
QStringLiteral
(
"</b>"
)
+
post
);
TreeWidgetItem
*
item
=
new
TreeWidgetItem
(
rootFileItem
(
url
,
fName
),
row
);
m_curResults
->
tree
->
model
()
->
blockSignals
(
true
);
item
->
setData
(
0
,
ReplaceMatches
::
FileUrlRole
,
url
);
item
->
setData
(
0
,
Qt
::
ToolTipRole
,
url
);
item
->
setData
(
0
,
ReplaceMatches
::
FileNameRole
,
fName
);
...
...
@@ -990,6 +992,7 @@ void KatePluginSearchView::matchFound(const QString &url, const QString &fName,
item
->
setData
(
0
,
ReplaceMatches
::
EndLineRole
,
endLine
);
item
->
setData
(
0
,
ReplaceMatches
::
EndColumnRole
,
endColumn
);
item
->
setCheckState
(
0
,
Qt
::
Checked
);
m_curResults
->
tree
->
model
()
->
blockSignals
(
false
);
m_curResults
->
matches
++
;
}
...
...
Kåre Särs
@sars
mentioned in merge request
!137 (closed)
·
Dec 16, 2020
mentioned in merge request
!137 (closed)
mentioned in merge request !137
Toggle commit list
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