shift-shell/containments/homescreen/package/contents/ui/HomeLauncherSvg.qml
Marco Martin 0108d70fb4 move the applicationslistmodel to containment c++
the application list is only used in that containment for now: don't
create an extra qml import just for that, but put it into the c++
applet for the homescreen instead to make sure nobody else
uses it at least until we are really sure is needed elsewhere
2015-05-14 18:05:01 +02:00

33 lines
707 B
QML

import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
Item {
id: root
width: parent.width / parent.columns
height: parent.buttonHeight
property var callback
property string text
property string sub
property alias svg: icon.svg
property alias elementId: icon.elementId
PlasmaCore.SvgItem{
id: icon
width: units.iconSizes.medium
height: width
anchors.centerIn: parent
}
MouseArea {
anchors.fill: parent
propagateComposedEvents: true
onClicked: {
if (callback) {
callback();
} else {
addNumber(parent.text);
}
}
}
}