Commit 7716f4a5 by luyikei

Timeline: Find new positions by the frame

parent d776fa28
......@@ -31,6 +31,7 @@ Rectangle {
property int lastPosition
property int begin
property int end
property int length
property string libraryUuid // Library UUID: For thumbnails
property string uuid // Instance UUID
property var linkedClips: linkedClipsDict[uuid] ? linkedClipsDict[uuid] : [] // Uuid
......@@ -40,19 +41,12 @@ Rectangle {
property var clipInfo
function setPixelPosition( pixels )
function forcePosition()
{
if ( pixels >= 0 )
position = ptof( pixels );
// FIXME: Binding can be lost because of dragging.
// Reset the binding so that it will reset the x position
x = Qt.binding( function() { return ftop( position ); } );
}
function pixelPosition()
{
return ftop( position );
}
function resize() {
// This function updates Backend
workflow.resizeClip( uuid, begin, end, position );
......
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