mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 10:50:27 -04:00
Update listeners definitions
This commit is contained in:
parent
f3e08a04d7
commit
1a25fd0740
@ -54,7 +54,7 @@ Rectangle {
|
||||
|
||||
MouseArea {
|
||||
anchors.fill : list
|
||||
onWheel: {
|
||||
onWheel: wheel => {
|
||||
|
||||
if(list.moving)
|
||||
return;
|
||||
@ -96,10 +96,11 @@ Rectangle {
|
||||
|
||||
highlightMoveDuration: 250
|
||||
|
||||
onCurrentIndexChanged: {
|
||||
if (currentIndex !== -1)
|
||||
currentCoverChanged(currentIndex);
|
||||
onCurrentIndexChanged: currentIndex => {
|
||||
if (list.currentIndex !== -1) {
|
||||
mainFlowContainer.currentCoverChanged(list.currentIndex);
|
||||
}
|
||||
}
|
||||
|
||||
delegate: Component {
|
||||
|
||||
@ -173,7 +174,7 @@ Rectangle {
|
||||
currentIndexHelper.selectedItem(index);
|
||||
}
|
||||
|
||||
onReleased: {
|
||||
onReleased: mouse => {
|
||||
list.currentIndex = index;
|
||||
|
||||
if(mouse.button === Qt.RightButton) // context menu is requested
|
||||
@ -189,7 +190,7 @@ Rectangle {
|
||||
}
|
||||
|
||||
focus: true
|
||||
Keys.onPressed: {
|
||||
Keys.onPressed: event => {
|
||||
|
||||
if (event.modifiers & Qt.ControlModifier || event.modifiers & Qt.ShiftModifier)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user