Start implementing new message selection system

This commit is contained in:
miruka
2020-03-25 23:06:51 -04:00
parent 710dba09ec
commit 3852357614
12 changed files with 130 additions and 13 deletions

View File

@@ -10,10 +10,14 @@ Rectangle {
color: theme.chat.eventList.background
property Item selectableLabelContainer: Item {}
property alias eventList: eventList
HShortcut {
sequence: "Escape"
onActivated: eventList.checkedDelegates = {}
}
HListView {
id: eventList
clip: true
@@ -136,6 +140,7 @@ Rectangle {
}
}
HNoticePage {
text: qsTr("No messages to show yet")
@@ -150,7 +155,7 @@ Rectangle {
const left = centroid.pressedButtons & Qt.LeftButton
const vel = centroid.velocity.y
const pos = centroid.position.y
const dist = Math.min(selectableLabelContainer.height / 4, 50)
const dist = Math.min(eventList.height / 4, 50)
const boost = 20 * (pos < dist ? -pos : -(height - pos))
dragFlicker.speed =