Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frameworks
Kirigami
Commits
a507a48e
Commit
a507a48e
authored
Mar 29, 2022
by
Tranter Madi
🌧
Committed by
Nate Graham
Mar 29, 2022
Browse files
ListItemDragHandle: Emit moveRequest when cursor enters a new index
BUG: 451014
FIXED-IN: 5.93
parent
3ccfae68
Pipeline
#156088
passed with stage
in 2 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/controls/ListItemDragHandle.qml
View file @
a507a48e
...
...
@@ -126,7 +126,7 @@ Item {
function
arrangeItem
()
{
var
newIndex
=
listView
.
indexAt
(
1
,
listView
.
contentItem
.
mapFromItem
(
listItem
,
0
,
0
).
y
+
internal
.
mouseDownY
);
if
(
Math
.
abs
(
listItem
.
y
-
internal
.
startY
)
>
height
&&
newIndex
>
-
1
&&
newIndex
!==
index
)
{
if
(
newIndex
>
-
1
&&
newIndex
!==
index
)
{
root
.
moveRequested
(
index
,
newIndex
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment