Commit 14a15e89 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

qml performance fix, patch by Martin Tobias Holmedahl Sandsmark

Fixes #849
parent a8788b77
......@@ -92,7 +92,7 @@ Rectangle {
signal trimmedOut(var clip, bool shiftTrim, bool controlTrim)
onScrollStartChanged: {
clipRoot.hideClipViews = scrollStart > (clipDuration * timeline.scaleFactor) || scrollStart + scrollView.contentItem.width < 0
clipRoot.hideClipViews = scrollStart > (clipDuration * timeline.scaleFactor) || scrollStart + scrollView.width < 0
}
onIsGrabbedChanged: {
......
......@@ -60,7 +60,10 @@ Row {
Image {
id: thumbPlaceholder
visible: parent.running
anchors.fill: parent
width: parent.width
height: parent.height
sourceSize.width: width
sourceSize.height: height
horizontalAlignment: Image.AlignLeft
fillMode: Image.PreserveAspectFit
asynchronous: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment