/usr/share/kdenlive/kdenlivemonitorsplit.qml is in kdenlive-data 4:15.12.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | import QtQuick 2.0
Item {
id: root
objectName: "rootsplit"
// default size, but scalable by user
height: 300; width: 400
signal qmlMoveSplit()
property int splitterPos
property point center
property double scale
// percentage holds splitter pos relative to the scene percentage
property double percentage
// realpercent holds splitter pos relative to the frame width percentage
property double realpercent
percentage: 0.5
realpercent: 0.5
splitterPos: this.width / 2
MouseArea {
width: root.width; height: root.height
anchors.centerIn: parent
hoverEnabled: true
cursorShape: Qt.SizeHorCursor
onPressed: {
root.percentage = mouseX / width
root.splitterPos = mouseX
root.qmlMoveSplit()
}
onPositionChanged: {
if (pressed) {
root.percentage = mouseX / width
root.splitterPos = mouseX
root.qmlMoveSplit()
}
timer.restart()
splitter.visible = true
}
//onEntered: { splitter.visible = true }
onExited: { splitter.visible = false }
}
Rectangle {
id: splitter
x: root.splitterPos
y: 0
width: 1
height: root.height
color: "red"
visible: false
}
Timer {
id: timer
interval: 1000; running: false; repeat: false
onTriggered: {
splitter.visible = false
}
}
}
|