Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/ItemGridDelegate.qml
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 27 | Item { | |||
---|---|---|---|---|---|
105 | PlasmaCore.ToolTipArea { | 105 | PlasmaCore.ToolTipArea { | ||
106 | id: toolTip | 106 | id: toolTip | ||
107 | 107 | | |||
108 | property string text: model.display | 108 | property string text: model.display | ||
109 | 109 | | |||
110 | anchors.fill: parent | 110 | anchors.fill: parent | ||
111 | active: root.visible && label.truncated | 111 | active: root.visible && label.truncated | ||
112 | mainItem: toolTipDelegate | 112 | mainItem: toolTipDelegate | ||
113 | | ||||
114 | onContainsMouseChanged: item.GridView.view.itemContainsMouseChanged(containsMouse) | ||||
hein: What do the hover changes do in this patch? :) | |||||
trmdi: It helps to display the tooltip. | |||||
113 | } | 115 | } | ||
114 | 116 | | |||
115 | Keys.onPressed: { | 117 | Keys.onPressed: { | ||
116 | if (event.key === Qt.Key_Menu && hasActionList) { | 118 | if (event.key === Qt.Key_Menu && hasActionList) { | ||
117 | event.accepted = true; | 119 | event.accepted = true; | ||
118 | openActionMenu(item); | 120 | openActionMenu(item); | ||
119 | } else if ((event.key === Qt.Key_Enter || event.key === Qt.Key_Return)) { | 121 | } else if ((event.key === Qt.Key_Enter || event.key === Qt.Key_Return)) { | ||
120 | event.accepted = true; | 122 | event.accepted = true; | ||
Show All 10 Lines |
What do the hover changes do in this patch? :)