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:
miruka
2020-07-12 16:58:22 -04:00
parent fe831e7865
commit cc831d0640
2 changed files with 8 additions and 7 deletions

View File

@@ -6,7 +6,6 @@ import QtQuick.Controls 2.12
ListView {
id: listView
property alias cursorShape: cursorShapeArea.cursorShape
property int currentItemHeight: currentItem ? currentItem.height : 0
property var checked: ({})
@@ -130,12 +129,6 @@ ListView {
onSelectedCountChanged: if (! selectedCount) lastCheckedDelegateIndex = 0
MouseArea {
id: cursorShapeArea
anchors.fill: parent
acceptedButtons: Qt.NoButton
}
HKineticScrollingDisabler {
width: enabled ? parent.width : 0
height: enabled ? parent.height : 0