kdenlivemonitor.qml 719 Bytes
Newer Older
1 2 3 4
import QtQuick 2.0

Item {
    id: root
5
    objectName: "root"
6 7 8 9

    // default size, but scalable by user
    height: 300; width: 400
    property string comment
10 11
    property point center
    property double scale
12

13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
    Rectangle {
        objectName: "marker"
        anchors {
            right: parent.right
            top: parent.top
        }
        width: marker.width + 10
        height: marker.height + 5
        color: "#99ff0000"
        border.color: "#33ff0000"
        border.width: 3
        radius: 5
        visible: root.comment != ""
         Text {
        id: marker
        objectName: "markertext"
        anchors.centerIn: parent
        color: "white"
        text: root.comment
    }
    }
}