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
Plasma
libksysguard
Commits
dba782c9
Commit
dba782c9
authored
Jan 21, 2021
by
Laurent Montel
Browse files
Don't use deprecated enum
parent
39a22f45
Changes
1
Hide whitespace changes
Inline
Side-by-side
processui/ProcessFilter.cpp
View file @
dba782c9
...
...
@@ -113,7 +113,7 @@ bool ProcessFilter::filterAcceptsRow( int source_row, const QModelIndex & source
if
(
QSortFilterProxyModel
::
filterAcceptsRow
(
source_row
,
source_parent
))
return
true
;
auto
strings
=
filterRegExp
().
pattern
().
split
(
QLatin1Char
(
','
),
Q
String
::
SplitBehavior
::
SkipEmptyParts
);
auto
strings
=
filterRegExp
().
pattern
().
split
(
QLatin1Char
(
','
),
Q
t
::
SkipEmptyParts
);
for
(
auto
string
:
strings
)
{
string
=
string
.
trimmed
();
if
(
process
->
name
().
indexOf
(
string
)
!=
-
1
||
QString
::
number
(
process
->
pid
()).
indexOf
(
string
)
!=
-
1
)
{
...
...
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