disable mouseOver on touch
This commit is contained in:
parent
86ea6dfe4c
commit
96e436f641
@ -51,6 +51,7 @@ Signals:
|
|||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import org.kde.plasma.core 0.1 as PlasmaCore
|
import org.kde.plasma.core 0.1 as PlasmaCore
|
||||||
|
import "private/Config.js" as Config
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: listItem
|
id: listItem
|
||||||
@ -86,7 +87,7 @@ Item {
|
|||||||
prefix: "normal"
|
prefix: "normal"
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
opacity: itemMouse.containsMouse ? 0.5 : 1
|
opacity: itemMouse.containsMouse && !itemMouse.pressed ? 0.5 : 1
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
prefix = (listItem.sectionDelegate ? "section" : (listItem.checked ? "pressed" : "normal"))
|
prefix = (listItem.sectionDelegate ? "section" : (listItem.checked ? "pressed" : "normal"))
|
||||||
}
|
}
|
||||||
@ -109,7 +110,7 @@ Item {
|
|||||||
property bool changeBackgroundOnPress: !listItem.checked && !listItem.sectionDelegate
|
property bool changeBackgroundOnPress: !listItem.checked && !listItem.sectionDelegate
|
||||||
anchors.fill: background
|
anchors.fill: background
|
||||||
enabled: false
|
enabled: false
|
||||||
hoverEnabled: true
|
hoverEnabled: Config.mouseOverEnabled
|
||||||
|
|
||||||
onClicked: listItem.clicked()
|
onClicked: listItem.clicked()
|
||||||
onPressAndHold: listItem.pressAndHold()
|
onPressAndHold: listItem.pressAndHold()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user