Skip to content

Commit

Permalink
chore: enable cross-page item drag in FullscreenFrame
Browse files Browse the repository at this point in the history
全屏启动器启用图标拖拽到其它页面。

注:此功能在 Qt 5 下有 BUG,会导致 PageIndicator 更新了但 SwipeView
未翻页。Qt 6 上没有这个问题。

Log:
  • Loading branch information
BLumia committed Dec 11, 2023
1 parent 5945ea6 commit fe1615b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions qml/FullscreenFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,11 @@ Control {
id: dndMovePageTimer
interval: 1000
onTriggered: {
// FIXME: why this isn't working?
// if (parent.pageIntent > 0) {
// pages.incrementCurrentIndex()
// } else if (parent.pageIntent < 0) {
// pages.decrementCurrentIndex()
// }
if (parent.pageIntent > 0) {
pages.incrementCurrentIndex()
} else if (parent.pageIntent < 0) {
pages.decrementCurrentIndex()
}
}
}
}
Expand Down

0 comments on commit fe1615b

Please sign in to comment.