File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ InputEventItem {
200200 }
201201 }
202202 // TODO: this might not be the correct way to handle wheel
203- onWheel: {
203+ onWheel : function ( wheel ) {
204204 if (flipPageDelay .running ) return
205205 let xDelta = wheel .angleDelta .x / 8
206206 let yDelta = wheel .angleDelta .y / 8
@@ -346,7 +346,7 @@ InputEventItem {
346346 MouseArea {
347347 anchors .fill : parent
348348 acceptedButtons: Qt .RightButton | Qt .LeftButton
349- onClicked: {
349+ onClicked : function ( mouse ) {
350350 // FIXME: prevent the bug:https://bugreports.qt.io/browse/QTBUG-125139;
351351 if (mouse .button === Qt .RightButton ) {
352352 mouse .accepted = false ;
@@ -672,7 +672,7 @@ InputEventItem {
672672 }
673673
674674 Keys .forwardTo : [searchEdit]
675- Keys .onPressed : {
675+ Keys .onPressed : function ( event ) {
676676 if (baseLayer .focus === true ) {
677677 // the SearchEdit will catch the key event first, and events that it won't accept will then got here
678678 switch (event .key ) {
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ ColumnLayout {
2626 }
2727
2828 function resetViewState () {
29- loader .item .resetViewState ()
29+ if (CategorizedSortProxyModel .categoryType !== CategorizedSortProxyModel .FreeCategory ) {
30+ loader .item .resetViewState ()
31+ }
3032 }
3133
3234 function switchToFreeSort (freeSort ) {
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ FocusScope {
255255 Drag .dragType : Drag .Automatic
256256 Drag .mimeData : Helper .generateDragMimeData (model .desktopId , true )
257257 Drag .hotSpot .y : height / 2
258- Drag .hotSpot .x : Drag . hotSpot . y
258+ Drag .hotSpot .x : width / 2
259259
260260 states: State {
261261 name: " dragged" ;
You can’t perform that action at this time.
0 commit comments