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
9c03c738
Commit
9c03c738
authored
May 07, 2021
by
Mark Nauwelaerts
Browse files
lspclient: restore symbolview sorting
parent
302c65a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientsymbolview.cpp
View file @
9c03c738
...
...
@@ -127,6 +127,11 @@ public:
protected:
bool
lessThan
(
const
QModelIndex
&
sourceLeft
,
const
QModelIndex
&
sourceRight
)
const
override
{
// make sure to honour configured sort-order (if no scoring applies)
if
(
m_pattern
.
isEmpty
())
{
return
QSortFilterProxyModel
::
lessThan
(
sourceLeft
,
sourceRight
);
}
const
int
l
=
sourceLeft
.
data
(
WeightRole
).
toInt
();
const
int
r
=
sourceRight
.
data
(
WeightRole
).
toInt
();
return
l
<
r
;
...
...
Write
Preview
Markdown
is supported
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