Fix icons in ActivityManager

This commit is contained in:
Sebastian Kügler 2013-10-30 16:51:28 +01:00
parent b71f307ed6
commit f30193bdfc

View File

@ -71,24 +71,24 @@ PlasmaCore.FrameSvgItem {
Component.onCompleted: mainMouseArea = mouseArea Component.onCompleted: mainMouseArea = mouseArea
QIconItem { PlasmaCore.IconItem {
id: iconWidget id: iconWidget
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
x: y x: y
width: theme.hugeIconSize width: theme.hugeIconSize
height: width height: width
icon: QIcon(Icon) source: Icon
} }
QPixmapItem { QPixmapItem {
anchors.fill: iconWidget anchors.fill: iconWidget
pixmap: Icon ? undefined : activityManager.pixmapForActivity(model["DataEngineSource"]) pixmap: Icon ? undefined : activityManager.pixmapForActivity(model["DataEngineSource"])
visible: Icon == "" visible: Icon == ""
} }
QIconItem { PlasmaCore.IconItem {
width: theme.mediumIconSize width: theme.mediumIconSize
height: width height: width
anchors.centerIn: iconWidget anchors.centerIn: iconWidget
icon: QIcon("media-playback-start") source: QIcon("media-playback-start")
visible: model["State"] != "Running" visible: model["State"] != "Running"
} }
Column { Column {