Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
252
Issues
252
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Multimedia
Kdenlive
Commits
61bde8d5
Commit
61bde8d5
authored
Jun 14, 2019
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix thumbs not displayed in all thumbs view
CCBUG: 408556
parent
b480ffbe
Pipeline
#4313
passed with stage
in 17 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/timeline2/view/qml/ClipThumbs.qml
src/timeline2/view/qml/ClipThumbs.qml
+6
-4
No files found.
src/timeline2/view/qml/ClipThumbs.qml
View file @
61bde8d5
...
...
@@ -10,13 +10,15 @@ Row {
visible
:
!
isAudio
opacity
:
parentTrack
.
isAudio
||
parentTrack
.
isHidden
||
clipStatus
==
ClipState
.
Disabled
?
0.2
:
1
property
int
thumbWidth
:
container
.
height
*
16.0
/
9.0
property
int
scrollStart
:
Math
.
max
(
0
,
scrollView
.
flickableItem
.
contentX
/
timeline
.
scaleFactor
-
clipRoot
.
modelStart
)
property
int
scrollEnd
:
scrollStart
+
scrollView
.
viewport
.
width
/
timeline
.
scaleFactor
property
int
scrollStart
:
scrollView
.
flickableItem
.
contentX
-
clipRoot
.
modelStart
*
timeline
.
scaleFactor
property
int
scrollEnd
:
scrollStart
+
scrollView
.
viewport
.
width
property
bool
enableCache
:
clipRoot
.
itemType
==
ProducerType
.
Video
||
clipRoot
.
itemType
==
ProducerType
.
AV
function
reload
()
{
clipRoot
.
baseThumbPath
=
''
clipRoot
.
baseThumbPath
=
clipRoot
.
variableThumbs
?
''
:
'
image://thumbnail/
'
+
clipRoot
.
binId
+
'
/
'
+
(
clipRoot
.
isImage
?
'
#0
'
:
'
#
'
)
}
Repeater
{
id
:
thumbRepeater
// switching the model allows to have different view modes:
...
...
@@ -33,10 +35,10 @@ Row {
height
:
container
.
height
fillMode
:
Image
.
PreserveAspectFit
asynchronous
:
true
cache
:
fals
e
cache
:
enableCach
e
property
int
currentFrame
:
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
?
(
index
==
0
?
clipRoot
.
baseThumbPath
+
Math
.
floor
(
clipRoot
.
inPoint
*
clipRoot
.
speed
)
:
clipRoot
.
baseThumbPath
+
Math
.
floor
(
clipRoot
.
outPoint
*
clipRoot
.
speed
))
:
(
currentFrame
+
width
/
timeline
.
scaleFactor
<
thumbRow
.
scrollStart
||
currentFrame
>
thumbRow
.
scrollEnd
)
?
''
:
clipRoot
.
baseThumbPath
+
currentFrame
source
:
thumbRepeater
.
count
<
3
?
(
index
==
0
?
clipRoot
.
baseThumbPath
+
Math
.
floor
(
clipRoot
.
inPoint
*
clipRoot
.
speed
)
:
clipRoot
.
baseThumbPath
+
Math
.
floor
(
clipRoot
.
outPoint
*
clipRoot
.
speed
))
:
(
index
*
width
<
thumbRow
.
scrollStart
-
width
||
index
*
width
>
thumbRow
.
scrollEnd
)
?
''
:
clipRoot
.
baseThumbPath
+
currentFrame
}
}
}
Write
Preview
Markdown
is supported
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