mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
39 lines
920 B
QML
39 lines
920 B
QML
import QtQuick 2.0
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
import org.kde.kio 1.0 as Kio
|
|
|
|
MouseArea {
|
|
id: root
|
|
width: applications.cellWidth
|
|
height: width
|
|
onClicked: {
|
|
console.log("Clicked: " + model.ApplicationStorageIdRole)
|
|
appListModel.runApplication(model.ApplicationStorageIdRole)
|
|
}
|
|
|
|
PlasmaCore.IconItem {
|
|
id: icon
|
|
anchors.centerIn: parent
|
|
width: units.iconSizes.large
|
|
height: width
|
|
source: model.ApplicationIconRole
|
|
}
|
|
|
|
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: model.ApplicationNameRole
|
|
font.pixelSize: theme.smallestFont.pixelSize
|
|
color: "white"
|
|
}
|
|
}
|