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

42 lines
822 B
QML
Raw Normal View History

2014-09-29 20:43:08 +00:00
import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
2014-10-23 13:12:49 +00:00
import org.kde.kio 1.0 as Kio
2014-09-29 20:43:08 +00:00
MouseArea {
id: root
width: applications.cellWidth
height: width
onClicked: {
2014-10-23 13:12:49 +00:00
console.log("Clicked: " + model.entryPath)
krun.openUrl(model.entryPath)
2014-09-29 20:43:08 +00:00
}
2014-10-23 13:12:49 +00:00
Kio.KRun {
id: krun
}
2014-09-29 20:43:08 +00:00
PlasmaCore.IconItem {
id: icon
2014-10-23 13:06:35 +00:00
anchors.centerIn: parent
2014-09-29 20:43:08 +00:00
width: units.iconSizes.large
height: width
source: iconName
}
Text {
visible: text.length > 0
anchors {
top: icon.bottom
2014-10-23 13:06:35 +00:00
left: icon.left
right: icon.right
2014-09-29 20:43:08 +00:00
}
2014-10-23 13:06:35 +00:00
wrapMode: Text.WordWrap
2014-09-29 20:43:08 +00:00
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
text: name
color: "white"
}
}