Skip to content
GitLab
Menu
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
f4a08219
Commit
f4a08219
authored
May 24, 2021
by
Jean-Baptiste Mardelle
Browse files
Fix clip thumbs disappearing on timeline resize
parent
2144251a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/ClipThumbs.qml
View file @
f4a08219
...
...
@@ -37,6 +37,8 @@ Row {
fillMode
:
Image
.
PreserveAspectFit
asynchronous
:
true
cache
:
enableCache
//sourceSize.width: width
//sourceSize.height: height
property
int
currentFrame
:
fixedThumbs
?
0
:
thumbRepeater
.
count
<
3
?
(
index
==
0
?
thumbRepeater
.
thumbStartFrame
:
thumbRepeater
.
thumbEndFrame
)
:
Math
.
floor
(
clipRoot
.
inPoint
+
Math
.
round
((
index
)
*
width
/
timeline
.
scaleFactor
)
*
clipRoot
.
speed
)
horizontalAlignment
:
thumbRepeater
.
count
<
3
?
(
index
==
0
?
Image
.
AlignLeft
:
Image
.
AlignRight
)
:
Image
.
AlignLeft
source
:
thumbRepeater
.
count
<
3
?
(
clipRoot
.
baseThumbPath
+
currentFrame
)
:
(
index
*
width
<
clipRoot
.
scrollStart
-
width
||
index
*
width
>
clipRoot
.
scrollStart
+
scrollView
.
width
)
?
''
:
clipRoot
.
baseThumbPath
+
currentFrame
...
...
@@ -47,26 +49,16 @@ Row {
}
}
}
BusyIndicator
{
running
:
parent
.
status
!=
Image
.
Ready
Image
{
id
:
thumbPlaceholder
visible
:
parent
.
status
!=
Image
.
Ready
anchors.left
:
parent
.
left
anchors.leftMargin
:
index
<
thumbRepeater
.
count
-
1
?
0
:
parent
.
width
-
thumbRow
.
thumbWidth
-
1
implicitWidth
:
thumbRepeater
.
imageWidth
implicitHeight
:
container
.
height
hoverEnabled
:
false
visible
:
running
contentItem
:
Image
{
id
:
thumbPlaceholder
visible
:
parent
.
running
width
:
parent
.
width
height
:
parent
.
height
sourceSize.width
:
width
sourceSize.height
:
height
horizontalAlignment
:
Image
.
AlignLeft
fillMode
:
Image
.
PreserveAspectFit
asynchronous
:
true
}
width
:
parent
.
width
height
:
parent
.
height
horizontalAlignment
:
Image
.
AlignLeft
fillMode
:
Image
.
PreserveAspectFit
asynchronous
:
true
}
Rectangle
{
visible
:
thumbRepeater
.
count
<
3
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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