shift-shell/shell/contents/components/HomeLauncher.qml
2014-09-29 22:43:08 +02:00

39 lines
804 B
QML

import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
MouseArea {
id: root
width: applications.cellWidth
height: width
onClicked: {
console.log("Clicked: " + width)
}
PlasmaCore.IconItem {
id: icon
anchors {
top: root.top
horizontalCenter: root.horizontalCenter
}
width: units.iconSizes.large
height: width
source: iconName
}
Text {
visible: text.length > 0
anchors {
top: icon.bottom
left: parent.left
right: parent.right
}
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
font.pixelSize: theme.smallestFont.pointSize
text: name
color: "white"
}
}