From 96e436f64158d577e8ae889e564fe0ac438f1ef8 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 10 Aug 2012 11:42:53 +0200 Subject: [PATCH] disable mouseOver on touch --- declarativeimports/plasmacomponents/qml/ListItem.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/declarativeimports/plasmacomponents/qml/ListItem.qml b/declarativeimports/plasmacomponents/qml/ListItem.qml index a9b9ecfd2..e352eb08f 100644 --- a/declarativeimports/plasmacomponents/qml/ListItem.qml +++ b/declarativeimports/plasmacomponents/qml/ListItem.qml @@ -51,6 +51,7 @@ Signals: import QtQuick 1.0 import org.kde.plasma.core 0.1 as PlasmaCore +import "private/Config.js" as Config Item { id: listItem @@ -86,7 +87,7 @@ Item { prefix: "normal" anchors.fill: parent - opacity: itemMouse.containsMouse ? 0.5 : 1 + opacity: itemMouse.containsMouse && !itemMouse.pressed ? 0.5 : 1 Component.onCompleted: { prefix = (listItem.sectionDelegate ? "section" : (listItem.checked ? "pressed" : "normal")) } @@ -109,7 +110,7 @@ Item { property bool changeBackgroundOnPress: !listItem.checked && !listItem.sectionDelegate anchors.fill: background enabled: false - hoverEnabled: true + hoverEnabled: Config.mouseOverEnabled onClicked: listItem.clicked() onPressAndHold: listItem.pressAndHold()