17
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
import org.kde.plasma.core 0.1
22
import org.kde.plasma.components 0.1
23
import org.kde.qtextracomponents 0.1
21
import QtQuick.Controls 1.1
22
import org.kde.kquickcontrolsaddons 2.0
24
23
import "navigation.js" as Navigation
28
27
property alias count: view.count
29
28
property alias header: view.header
45
38
snapMode: ListView.SnapToItem
49
checked: view.currentIndex==index
43
// checked: view.currentIndex==index
50
44
width: parentItem.actualWidth
51
45
x: parentItem.proposedMargin
52
46
property real contHeight: height*0.8
53
47
height: nameLabel.font.pixelSize*3
58
view.currentIndex = index
59
Navigation.openApplication(application)
67
anchors.verticalCenter: parent.verticalCenter
68
anchors.left: parent.left
72
anchors.right: icon.right
73
anchors.bottom: icon.bottom
74
visible: isInstalled && view.model.stateFilter!=2
82
anchors.left: icon.right
83
anchors.right: ratingsItem.left
85
font.pointSize: commentLabel.font.pointSize*1.7
86
elide: Text.ElideRight
95
right: installButton.left
97
elide: Text.ElideRight
100
opacity: delegateArea.containsMouse ? 1 : 0.2
110
height: contHeight*.4
111
width: installButton.width/2
115
InstallApplicationButton {
118
bottom: parent.bottom
121
width: Math.max(200, minimumWidth) //minimumWidth depends on paintedWidth, which is invalid before actually painting the button
122
// property bool isVisible: delegateArea.containsMouse && !installButton.canHide
123
// opacity: isVisible ? 1 : 0
124
application: model.application
50
view.currentIndex = index
51
Navigation.openApplication(application)
60
verticalCenter: parent.verticalCenter
67
right: resourceIcon.right
68
bottom: resourceIcon.bottom
70
visible: isInstalled && view.model.stateFilter!=2
79
left: resourceIcon.right
80
right: ratingsItem.left
83
font.pointSize: commentLabel.font.pointSize*1.7
84
elide: Text.ElideRight
90
bottom: resourceIcon.bottom
91
left: resourceIcon.right
93
right: installButton.left
95
elide: Text.ElideRight
98
opacity: delegateArea.containsMouse ? 1 : 0.2
108
height: contHeight*.4
109
width: installButton.width/2
113
InstallApplicationButton {
116
bottom: parent.bottom
119
width: Math.max(200, minimumWidth) //minimumWidth depends on paintedWidth, which is invalid before actually painting the button
120
// property bool isVisible: delegateArea.containsMouse && !installButton.canHide
121
// opacity: isVisible ? 1 : 0
122
application: model.application
132
orientation: Qt.Vertical
137
bottom: parent.bottom