Effect.qml 727 Bytes
Newer Older
luyikei's avatar
luyikei committed
1 2
import QtQuick 2.0
import QtQuick.Controls 1.4
3 4
import QtQuick.Layouts 1.3

luyikei's avatar
luyikei committed
5 6 7 8 9 10 11

Rectangle {
    id: effect
    color: "#444444"
    border.color: "#222222"
    border.width: 1

12 13 14
    width: parent.width
    height: childrenRect.height

luyikei's avatar
luyikei committed
15 16 17 18 19 20 21
    property string identifier
    property string name
    property string description

    Column {
        Text {
            text: name
22
            font.pointSize: 14
luyikei's avatar
luyikei committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
            color: "#EEEEEE"
            elide: Text.ElideRight
        }

        Text {
            text: description
            color: "#EEEEEE"
            elide: Text.ElideRight
        }
    }
    MouseArea {
        anchors.fill: parent
        onPressed: {
            view.startDrag( identifier );
        }
    }
}