Verified Commit e1343495 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/quicklaunch: add highlight to ListView

parent c86ee9ee
......@@ -77,6 +77,18 @@ Item {
Accessible.description: i18n("Launch %1", iconItem.launcher.genericName || iconItem.launcher.applicationName)
Accessible.role: Accessible.Button
onActiveFocusChanged: {
if (activeFocus) {
entered();
}
}
onEntered: {
if (iconItem.ListView.view) {
iconItem.ListView.view.currentIndex = iconItem.itemIndex;
}
}
onPressed: {
if (mouse.button == Qt.RightButton) {
contextMenu.refreshActions();
......
......@@ -5,6 +5,10 @@
*/
import QtQuick 2.2
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.draganddrop 2.0 as DragAndDrop
import "layout.js" as LayoutManager
......@@ -64,7 +68,10 @@ Item {
ListView {
id: listView
anchors.fill: parent
interactive: false
focus: true
interactive: true
keyNavigationWraps: true
model: UrlModel {
id: popupModel
......@@ -73,6 +80,11 @@ Item {
delegate: IconItem {
isPopupItem: true
}
highlight: PlasmaExtras.Highlight {}
highlightMoveDuration: PlasmaCore.Units.longDuration
highlightMoveVelocity: 1
}
Connections {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment