shift-shell/containments/homescreen/package/contents/ui/HomeLauncherSvg.qml
Bhushan Shah 035fcb3118 If more space is available for icons show bigger
Also fix text size on tablet-ish form factor
2015-09-01 17:35:01 +05:30

33 lines
705 B
QML

import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
Item {
id: root
width: parent.width / parent.columns
height: root.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);
}
}
}
}