Commit 77a2806a authored by luyikei's avatar luyikei

Add Marker.qml

parent 1cabad61
import QtQuick 2.0
Rectangle {
id: marker
width: 1
height: page.height
color: "#3F6644"
x: ftop( position ) + initPosOfCursor
property int position: 0
property var markerModel
onPositionChanged: {
markerModel["position"] = position;
length = Math.max( length, position + 100 );
}
onMarkerModelChanged: {
position = markerModel["position"];
}
Drag.keys: ["Marker"]
Drag.active: markerMouseArea.drag.active
Rectangle {
x: - ( width - 1 ) / 2
width: 5
height: 9
color: "#63ff44"
MouseArea {
id: markerMouseArea
anchors.fill: parent
drag.target: marker
drag.axis: Drag.XAxis
drag.minimumX: 0
}
}
}
......@@ -4,6 +4,7 @@
<file>Ruler.qml</file>
<file>Track.qml</file>
<file>TrackContainer.qml</file>
<file>Marker.qml</file>
<file>Cursor.qml</file>
<file>Clip.qml</file>
<file>ClipContextMenu.qml</file>
......
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