2
import org.kde.plasma.core 0.1 as PlasmaCore
3
import org.kde.plasma.components 0.1 as PlasmaComponents
4
import org.kde.qtextracomponents 0.1 as QtExtra
5
import SystemSettings 0.1
9
contentHeight: categoryList.height
10
contentWidth: categoryList.width
11
boundsBehavior: Flickable.StopAtBounds
13
signal loadModule( string name )
22
height: icon.height + label.height + 15
26
anchors.horizontalCenter: parent.horizontalCenter
27
anchors.verticalCenter: parent.verticalCenter
32
anchors.horizontalCenter: parent.horizontalCenter
37
icon: model.DecorationRole
44
height: label.paintedHeight + 3
45
anchors.horizontalCenter: icon.horizontalCenter
50
width: parent.width - 10
54
wrapMode: Text.WordWrap
55
horizontalAlignment: Text.AlignHCenter
56
verticalAlignment: Text.AlignBottom
57
text: model.DisplayRole
62
property bool mouseOver: false
63
property bool mousePressed: false
78
//FIXME: Hack for testing, breaks down with double-click.
87
root.loadModule( model.DisplayRole )
93
name: "selected+hovered"
94
when: mousePressed && mouseOver
108
when: mousePressed && !mouseOver
122
when: !mousePressed && mouseOver
157
anchors.left: parent.left
158
anchors.right: parent.right
159
height: categoryContents.height + 10
164
anchors.left: parent.left
165
anchors.right: parent.right
166
anchors.leftMargin: 5
167
anchors.rightMargin: 5
170
anchors.left: parent.left
171
anchors.leftMargin: 8
172
height: paintedHeight + 10
173
verticalAlignment: Text.AlignBottom
176
text: model.DisplayRole
182
rootIndex: modelIndex(index)
185
Component.onCompleted: {
186
lense.rootIndex = lense.modelIndex(index)
191
anchors.left: parent.left
192
anchors.right: parent.right
194
Repeater { model: lense }
206
delegate: categoryView