Skip to content

Commit d3f924b

Browse files
committed
fix: when debug, delete the warning logs.
as title Log: delete warning logs
1 parent 6339267 commit d3f924b

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

qml/FullscreenFrame.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

qml/windowed/AppList.qml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

qml/windowed/AppListView.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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";

0 commit comments

Comments
 (0)