[vlmc-devel] Clip.qml: Move hotSpot to where pressed
Yikai Lu
git at videolan.org
Fri Jul 22 10:14:30 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Fri Jul 22 17:11:15 2016 +0900| [9e2b0c4ef8e82794b5fbae23da72b2a702150d29] | committer: Yikai Lu
Clip.qml: Move hotSpot to where pressed
> https://code.videolan.org/videolan/vlmc/commit/9e2b0c4ef8e82794b5fbae23da72b2a702150d29
---
src/Gui/timeline/Clip.qml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Gui/timeline/Clip.qml b/src/Gui/timeline/Clip.qml
index 3702b91..938d49b 100644
--- a/src/Gui/timeline/Clip.qml
+++ b/src/Gui/timeline/Clip.qml
@@ -145,7 +145,6 @@ Rectangle {
Drag.keys: ["Clip"]
Drag.active: dragArea.drag.active
- Drag.hotSpot: Qt.point( 0, height / 2 )
MouseArea {
id: dragArea
@@ -193,6 +192,8 @@ Rectangle {
}
onPressed: {
+ clip.Drag.hotSpot = Qt.point( mouseX, clip.height / 2 );
+
if ( selected === true )
return;
More information about the Vlmc-devel
mailing list