Disable entering edit mode with longpress in the dashboard
Fixes: #1040
This commit is contained in:
parent
2cb2224e51
commit
aa82a3ce87
@ -80,11 +80,12 @@ MainViewBase {
|
|||||||
contentWidth: width
|
contentWidth: width
|
||||||
bottomMargin: root.bottomMargin
|
bottomMargin: root.bottomMargin
|
||||||
|
|
||||||
MouseArea {
|
// Disabling this as it causes collisions when items in the dashboard use longpresses
|
||||||
width: flickable.contentWidth
|
// MouseArea {
|
||||||
height: flickable.contentHeight
|
// width: flickable.contentWidth
|
||||||
onPressAndHold: root.editMode = true
|
// height: flickable.contentHeight
|
||||||
}
|
// onPressAndHold: root.editMode = true
|
||||||
|
// }
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
id: layout
|
id: layout
|
||||||
|
|||||||
@ -49,6 +49,5 @@ DashboardDelegateBase {
|
|||||||
thing: engine.thingManager.fetchingData ? null : engine.thingManager.things.getThing(root.item.thingId)
|
thing: engine.thingManager.fetchingData ? null : engine.thingManager.things.getThing(root.item.thingId)
|
||||||
|
|
||||||
onClicked: pageStack.push(Qt.resolvedUrl("../../devicepages/" + NymeaUtils.interfaceListToDevicePage(thing.thingClass.interfaces)), {thing: thing})
|
onClicked: pageStack.push(Qt.resolvedUrl("../../devicepages/" + NymeaUtils.interfaceListToDevicePage(thing.thingClass.interfaces)), {thing: thing})
|
||||||
onPressAndHold: root.longPressed()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user