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
Plasma
Plasma Workspace
Commits
bb053d8c
Commit
bb053d8c
authored
May 04, 2020
by
Konrad Materka
Browse files
Merge branch 'Plasma/5.18'
parents
d62fd2dd
77975468
Changes
2
Hide whitespace changes
Inline
Side-by-side
applets/systemtray/systemtraymodel.cpp
View file @
bb053d8c
...
...
@@ -322,8 +322,10 @@ void StatusNotifierModel::dataUpdated(const QString &sourceName, const Plasma::D
QVariant
icon
=
data
.
value
(
"Icon"
);
if
(
icon
.
isValid
()
&&
icon
.
canConvert
<
QIcon
>
()
&&
!
icon
.
value
<
QIcon
>
().
isNull
())
{
dataItem
->
setData
(
icon
,
Qt
::
DecorationRole
);
dataItem
->
setData
(
icon
,
static_cast
<
int
>
(
Role
::
Icon
));
}
else
{
dataItem
->
setData
(
data
.
value
(
"IconName"
),
Qt
::
DecorationRole
);
dataItem
->
setData
(
QVariant
(),
static_cast
<
int
>
(
Role
::
Icon
));
}
dataItem
->
setData
(
data
.
value
(
"Id"
),
static_cast
<
int
>
(
BaseModel
::
BaseRole
::
ItemId
));
...
...
@@ -344,7 +346,6 @@ void StatusNotifierModel::dataUpdated(const QString &sourceName, const Plasma::D
updateItemData
(
dataItem
,
data
,
Role
::
AttentionIconName
);
updateItemData
(
dataItem
,
data
,
Role
::
AttentionMovieName
);
updateItemData
(
dataItem
,
data
,
Role
::
Category
);
updateItemData
(
dataItem
,
data
,
Role
::
Icon
);
updateItemData
(
dataItem
,
data
,
Role
::
IconName
);
updateItemData
(
dataItem
,
data
,
Role
::
IconThemePath
);
updateItemData
(
dataItem
,
data
,
Role
::
IconsChanged
);
...
...
dataengines/statusnotifieritem/statusnotifieritemsource.cpp
View file @
bb053d8c
...
...
@@ -303,7 +303,7 @@ void StatusNotifierItemSource::refreshCallback(QDBusPendingCallWatcher *call)
overlayIcon
(
&
icon
,
&
overlay
);
}
}
setData
(
QStringLiteral
(
"Icon"
),
icon
.
isNull
()
?
QVariant
()
:
icon
);
setData
(
QStringLiteral
(
"Icon"
),
icon
);
setData
(
QStringLiteral
(
"IconName"
),
iconName
);
}
...
...
@@ -329,7 +329,7 @@ void StatusNotifierItemSource::refreshCallback(QDBusPendingCallWatcher *call)
overlayIcon
(
&
attentionIcon
,
&
overlay
);
}
}
setData
(
QStringLiteral
(
"AttentionIcon"
),
attentionIcon
.
isNull
()
?
QVariant
()
:
attentionIcon
);
setData
(
QStringLiteral
(
"AttentionIcon"
),
attentionIcon
);
}
//ToolTip
...
...
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