Move cursorShape property out of HListView
The Timeline EventList is the only HListView that uses it. For other list views, it interferes with items like text fields which need to set cursor shape by themselves.
This commit is contained in:
parent
fe831e7865
commit
cc831d0640
|
@ -6,7 +6,6 @@ import QtQuick.Controls 2.12
|
||||||
ListView {
|
ListView {
|
||||||
id: listView
|
id: listView
|
||||||
|
|
||||||
property alias cursorShape: cursorShapeArea.cursorShape
|
|
||||||
property int currentItemHeight: currentItem ? currentItem.height : 0
|
property int currentItemHeight: currentItem ? currentItem.height : 0
|
||||||
|
|
||||||
property var checked: ({})
|
property var checked: ({})
|
||||||
|
@ -130,12 +129,6 @@ ListView {
|
||||||
|
|
||||||
onSelectedCountChanged: if (! selectedCount) lastCheckedDelegateIndex = 0
|
onSelectedCountChanged: if (! selectedCount) lastCheckedDelegateIndex = 0
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
id: cursorShapeArea
|
|
||||||
anchors.fill: parent
|
|
||||||
acceptedButtons: Qt.NoButton
|
|
||||||
}
|
|
||||||
|
|
||||||
HKineticScrollingDisabler {
|
HKineticScrollingDisabler {
|
||||||
width: enabled ? parent.width : 0
|
width: enabled ? parent.width : 0
|
||||||
height: enabled ? parent.height : 0
|
height: enabled ? parent.height : 0
|
||||||
|
|
|
@ -196,6 +196,8 @@ Rectangle {
|
||||||
property string delegateWithSelectedText: ""
|
property string delegateWithSelectedText: ""
|
||||||
property string selectedText: ""
|
property string selectedText: ""
|
||||||
|
|
||||||
|
property alias cursorShape: cursorShapeArea.cursorShape
|
||||||
|
|
||||||
readonly property var redactableCheckedEvents:
|
readonly property var redactableCheckedEvents:
|
||||||
getSortedChecked().filter(ev => eventList.canRedact(ev))
|
getSortedChecked().filter(ev => eventList.canRedact(ev))
|
||||||
|
|
||||||
|
@ -360,6 +362,12 @@ Rectangle {
|
||||||
// When an invited room becomes joined, we should now be able to
|
// When an invited room becomes joined, we should now be able to
|
||||||
// fetch past events.
|
// fetch past events.
|
||||||
onInviterChanged: canLoad = true
|
onInviterChanged: canLoad = true
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
id: cursorShapeArea
|
||||||
|
anchors.fill: parent
|
||||||
|
acceptedButtons: Qt.NoButton
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user