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
Plasma Workspace
Commits
61f7b14e
Commit
61f7b14e
authored
Nov 30, 2020
by
Mikel Johnson
Browse files
[Kicker] Expose icon in Favorites as a name where possible
parent
7da3e583
Changes
1
Hide whitespace changes
Inline
Side-by-side
applets/kicker/plugin/simplefavoritesmodel.cpp
View file @
61f7b14e
...
...
@@ -68,7 +68,8 @@ QVariant SimpleFavoritesModel::data(const QModelIndex& index, int role) const
if
(
role
==
Qt
::
DisplayRole
)
{
return
entry
->
name
();
}
else
if
(
role
==
Qt
::
DecorationRole
)
{
return
entry
->
icon
();
if
(
entry
->
icon
().
name
()
!=
""
)
return
entry
->
icon
().
name
();
else
return
entry
->
icon
();
}
else
if
(
role
==
Kicker
::
DescriptionRole
)
{
return
entry
->
description
();
}
else
if
(
role
==
Kicker
::
FavoriteIdRole
)
{
...
...
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