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
5a8f57ba
Commit
5a8f57ba
authored
Jan 01, 2021
by
Christoph Cullmann
🐮
Browse files
minimal update speedups
parent
e466f58f
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/search/plugin_search.cpp
View file @
5a8f57ba
...
...
@@ -1707,6 +1707,11 @@ void KatePluginSearchView::expandResults()
return
;
}
// ensure we waste no time for updates & animations
m_curResults
->
tree
->
setUpdatesEnabled
(
false
);
const
bool
oldAnimationState
=
m_curResults
->
tree
->
isAnimated
();
m_curResults
->
tree
->
setAnimated
(
false
);
// we expand recursively if we either are told so or we have just one toplevel match item
if
(
m_ui
.
expandResults
->
isChecked
()
||
(
root
->
childCount
()
<=
1
))
{
m_curResults
->
tree
->
expandAll
();
...
...
@@ -1715,6 +1720,9 @@ void KatePluginSearchView::expandResults()
m_curResults
->
tree
->
collapseAll
();
m_curResults
->
tree
->
expandItem
(
root
);
}
m_curResults
->
tree
->
setAnimated
(
oldAnimationState
);
m_curResults
->
tree
->
setUpdatesEnabled
(
true
);
}
void
KatePluginSearchView
::
updateResultsRootItem
()
...
...
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