shift-shell/shell/contents/components/HomeLauncher.qml
2014-10-23 15:06:35 +02:00

36 lines
706 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.centerIn: parent
width: units.iconSizes.large
height: width
source: iconName
}
Text {
visible: text.length > 0
anchors {
top: icon.bottom
left: icon.left
right: icon.right
}
wrapMode: Text.WordWrap
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
text: name
color: "white"
}
}