Commit 1cabad61 authored by luyikei's avatar luyikei

Add PropertyButton.qml

parent 8ac2568c
import QtQuick 2.0
Rectangle {
width: 20
height: 20
color: mouseArea.containsMouse ? "#44FFFFFF" : selected ? "#AA000000" : "transparent"
radius: 2
property alias text: _text.text
property bool selected: false
Text {
id: _text
color: "#EEEEEE"
anchors.centerIn: parent
}
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onPressed: {
selected = !selected;
}
}
}
......@@ -7,5 +7,6 @@
<file>Cursor.qml</file>
<file>Clip.qml</file>
<file>ClipContextMenu.qml</file>
<file>PropertyButton.qml</file>
</qresource>
</RCC>
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