2015-02-25 18:26:04 +00:00
|
|
|
import QtQuick 2.0
|
|
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
|
import org.kde.kio 1.0 as Kio
|
|
|
|
|
import org.kde.plasma.components 2.0 as PlasmaComponents
|
|
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
|
id: root
|
|
|
|
|
width: applicationsView.cellWidth
|
|
|
|
|
height: width
|
|
|
|
|
onClicked: {
|
|
|
|
|
console.log("Clicked: " + model.ApplicationStorageIdRole)
|
|
|
|
|
appListModel.runApplication(model.ApplicationStorageIdRole)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlasmaCore.IconItem {
|
|
|
|
|
id: icon
|
|
|
|
|
anchors.centerIn: parent
|
2015-02-26 10:47:20 +00:00
|
|
|
width: parent.height / 2
|
2015-02-25 18:26:04 +00:00
|
|
|
height: width
|
|
|
|
|
source: model.ApplicationIconRole
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PlasmaComponents.Label {
|
2015-02-26 10:47:20 +00:00
|
|
|
id: label
|
2015-02-25 18:26:04 +00:00
|
|
|
visible: text.length > 0
|
|
|
|
|
|
|
|
|
|
anchors {
|
|
|
|
|
top: icon.bottom
|
|
|
|
|
left: icon.left
|
|
|
|
|
right: icon.right
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
|
horizontalAlignment: Qt.AlignHCenter
|
|
|
|
|
verticalAlignment: Qt.AlignVCenter
|
2015-02-26 10:47:20 +00:00
|
|
|
maximumLineCount: 2
|
2015-02-25 18:26:04 +00:00
|
|
|
|
|
|
|
|
text: model.ApplicationNameRole
|
|
|
|
|
font.pixelSize: theme.smallestFont.pixelSize
|
|
|
|
|
color: PlasmaCore.ColorScope.textColor
|
|
|
|
|
}
|
|
|
|
|
}
|