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
Multimedia
Kdenlive
Commits
45282ce9
Commit
45282ce9
authored
Jan 28, 2020
by
Jean-Baptiste Mardelle
Browse files
minor cleanup of qml's selected id management
parent
67dcdfb4
Pipeline
#14046
passed with stage
in 17 minutes and 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/Clip.qml
View file @
45282ce9
...
...
@@ -244,11 +244,11 @@ Rectangle {
cursorShape
:
(
trimInMouseArea
.
drag
.
active
||
trimOutMouseArea
.
drag
.
active
)?
Qt
.
SizeHorCursor
:
dragProxyArea
.
cursorShape
onPressed
:
{
root
.
autoScrolling
=
false
root
.
mainItemId
=
clipRoot
.
clipId
if
(
mouse
.
button
==
Qt
.
RightButton
)
{
if
(
timeline
.
selection
.
indexOf
(
clipRoot
.
clipId
)
==
-
1
)
{
controller
.
requestAddToSelection
(
clipRoot
.
clipId
,
true
)
}
root
.
mainItemId
=
clipRoot
.
clipId
root
.
clipFrame
=
Math
.
round
(
mouse
.
x
/
timeline
.
scaleFactor
)
root
.
showClipMenu
()
}
...
...
src/timeline2/view/qml/timeline.qml
View file @
45282ce9
...
...
@@ -50,6 +50,9 @@ Rectangle {
if
(
dragProxy
.
draggedItem
==
itemId
)
{
endDrag
()
}
if
(
itemId
==
mainItemId
)
{
mainItemId
=
-
1
}
}
function
updatePalette
()
{
...
...
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