Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/ItemGridDelegate.qml
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 53 | function actionTriggered(actionId, actionArgument) { | |||
---|---|---|---|---|---|
56 | if (close) { | 56 | if (close) { | ||
57 | root.toggle(); | 57 | root.toggle(); | ||
58 | } | 58 | } | ||
59 | } | 59 | } | ||
60 | 60 | | |||
61 | PlasmaCore.IconItem { | 61 | PlasmaCore.IconItem { | ||
62 | id: icon | 62 | id: icon | ||
63 | 63 | | |||
64 | y: showLabel ? (2 * highlightItemSvg.margins.top) : undefined | 64 | y: item.showLabel ? (2 * highlightItemSvg.margins.top) : undefined | ||
65 | 65 | | |||
66 | anchors.horizontalCenter: parent.horizontalCenter | 66 | anchors.horizontalCenter: parent.horizontalCenter | ||
67 | anchors.verticalCenter: showLabel ? undefined : parent.verticalCenter | 67 | anchors.verticalCenter: item.showLabel ? undefined : parent.verticalCenter | ||
68 | 68 | | |||
69 | width: iconSize | 69 | width: iconSize | ||
70 | height: width | 70 | height: width | ||
71 | 71 | | |||
72 | colorGroup: PlasmaCore.Theme.ComplementaryColorGroup | 72 | colorGroup: PlasmaCore.Theme.ComplementaryColorGroup | ||
73 | 73 | | |||
74 | animated: false | 74 | animated: false | ||
75 | usesPlasmaTheme: item.GridView.view.usesPlasmaTheme | 75 | usesPlasmaTheme: item.GridView.view.usesPlasmaTheme | ||
76 | 76 | | |||
77 | source: model.decoration | 77 | source: model.decoration | ||
78 | } | 78 | } | ||
79 | 79 | | |||
80 | PlasmaComponents.Label { | 80 | PlasmaComponents.Label { | ||
81 | id: label | 81 | id: label | ||
82 | 82 | | |||
83 | visible: showLabel | 83 | visible: item.showLabel | ||
84 | 84 | | |||
85 | anchors { | 85 | anchors { | ||
86 | top: icon.bottom | 86 | top: icon.bottom | ||
87 | topMargin: units.smallSpacing | 87 | topMargin: units.smallSpacing | ||
88 | left: parent.left | 88 | left: parent.left | ||
89 | leftMargin: highlightItemSvg.margins.left | 89 | leftMargin: highlightItemSvg.margins.left | ||
90 | right: parent.right | 90 | right: parent.right | ||
91 | rightMargin: highlightItemSvg.margins.right | 91 | rightMargin: highlightItemSvg.margins.right | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |