No QIcon in QML anymore

This commit is contained in:
Sebastian Kügler 2013-10-30 17:18:39 +01:00
parent 77acb3b971
commit 4806ff5a97

View File

@ -65,12 +65,12 @@ Item {
onClicked: activityTemplatesMenu.open() onClicked: activityTemplatesMenu.open()
} }
PlasmaComponents.MenuItem { PlasmaComponents.MenuItem {
icon: QIcon("user-desktop") icon: "user-desktop"
text: i18n("Empty Desktop") text: i18n("Empty Desktop")
onClicked: activityManager.createActivity("desktop") onClicked: activityManager.createActivity("desktop")
} }
PlasmaComponents.MenuItem { PlasmaComponents.MenuItem {
icon: QIcon("edit-copy") icon: "edit-copy"
text: i18n("Clone current activity") text: i18n("Clone current activity")
onClicked: activityManager.cloneCurrentActivity() onClicked: activityManager.cloneCurrentActivity()
} }
@ -85,7 +85,7 @@ Item {
parent: activityTemplatesMenu parent: activityTemplatesMenu
model: activityManager.activityTypeActions model: activityManager.activityTypeActions
delegate: PlasmaComponents.MenuItem { delegate: PlasmaComponents.MenuItem {
icon: QIcon(modelData.icon) icon: modelData.icon
text: modelData.text text: modelData.text
separator: modelData.separator separator: modelData.separator
onClicked: { onClicked: {