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