shift-shell/shell/contents/components/HomeLauncherSvg.qml

34 lines
707 B
QML
Raw Normal View History

2014-09-26 19:05:59 +00:00
import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
Item {
2014-09-29 19:09:50 +00:00
id: root
2014-09-26 19:05:59 +00:00
width: parent.width / parent.columns
height: parent.buttonHeight
property var callback
property string text
property string sub
property alias svg: icon.svg
2014-09-29 19:02:07 +00:00
property alias elementId: icon.elementId
2014-09-26 19:05:59 +00:00
PlasmaCore.SvgItem{
id: icon
width: units.iconSizes.medium
height: width
anchors.centerIn: parent
}
MouseArea {
anchors.fill: parent
2014-09-29 19:09:50 +00:00
propagateComposedEvents: true
2015-02-24 15:26:17 +00:00
2014-09-26 19:05:59 +00:00
onClicked: {
if (callback) {
callback();
} else {
addNumber(parent.text);
}
}
}
}