[vlmc-devel] Timeline: Select clips that are just moved
Yikai Lu
git at videolan.org
Sat Jul 23 12:06:25 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sat Jul 23 18:01:17 2016 +0900| [7534615505d1da9f9377b5baf9467fe8e705ccb1] | committer: Yikai Lu
Timeline: Select clips that are just moved
> https://code.videolan.org/videolan/vlmc/commit/7534615505d1da9f9377b5baf9467fe8e705ccb1
---
src/Gui/timeline/Track.qml | 1 +
src/Gui/timeline/main.qml | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/Gui/timeline/Track.qml b/src/Gui/timeline/Track.qml
index 2c556db..2da57b1 100644
--- a/src/Gui/timeline/Track.qml
+++ b/src/Gui/timeline/Track.qml
@@ -328,6 +328,7 @@ Item {
if ( target.newTrackId !== target.trackId ) {
drag.source.parent.parent.parent.z = ++maxZ;
if ( drag.source.uuid !== target.uuid ) {
+ target.clipInfo["selected"] = true;
addClip( target.type, target.newTrackId, target.clipInfo );
removeClipFromTrack( target.type, target.trackId, target.uuid );
--i;
diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index f4bc1c8..b66ba2a 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -93,7 +93,7 @@ Rectangle {
newDict["uuid"] = clipDict["uuid"];
newDict["trackId"] = trackId;
newDict["name"] = clipDict["name"];
- newDict["selected"] = false;
+ newDict["selected"] = clipDict["selected"] === false ? false : true ;
newDict["linkedClip"] = clipDict["linkedClip"] ? clipDict["linkedClip"] : "";
var tracks = trackContainer( trackType )["tracks"];
while ( trackId > tracks.count - 1 )
@@ -499,6 +499,7 @@ Rectangle {
onClipAdded: {
var clipInfo = workflow.clipInfo( uuid );
var type = clipInfo["audio"] ? "Audio" : "Video";
+ clipInfo["selected"] = false;
addClip( type, clipInfo["trackId"], clipInfo );
}
More information about the Vlmc-devel
mailing list