Skip to content
GitLab
Menu
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
e466f58f
Commit
e466f58f
authored
Jan 01, 2021
by
Christoph Cullmann
🐮
Browse files
revert matches counter display, seems slow + is duplicated
parent
49cf6dd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/search/plugin_search.cpp
View file @
e466f58f
...
...
@@ -1466,9 +1466,9 @@ void KatePluginSearchView::searching(const QString &file)
QTreeWidgetItem
*
root
=
m_curResults
->
tree
->
topLevelItem
(
0
);
if
(
root
)
{
if
(
file
.
size
()
>
70
)
{
root
->
setData
(
0
,
Qt
::
DisplayRole
,
i18n
(
"<b>Searching
(%1 matches)
: ...%
2
</b>"
,
m_curResults
->
matches
,
file
.
right
(
70
)));
root
->
setData
(
0
,
Qt
::
DisplayRole
,
i18n
(
"<b>Searching: ...%
1
</b>"
,
file
.
right
(
70
)));
}
else
{
root
->
setData
(
0
,
Qt
::
DisplayRole
,
i18n
(
"<b>Searching
(%1 matches): %2</b>"
,
m_curResults
->
matches
,
file
));
root
->
setData
(
0
,
Qt
::
DisplayRole
,
i18n
(
"<b>Searching
: %1</b>"
,
file
));
}
}
}
...
...
Christoph Cullmann
🐮
@cullmann
mentioned in merge request
!161 (merged)
·
Jan 01, 2021
mentioned in merge request
!161 (merged)
mentioned in merge request !161
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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