RetroShare/retroshare-qml-app/src/components/ButtonIcon.qml
2017-07-22 14:44:12 +02:00

29 lines
405 B
QML

import QtQuick 2.0
Item {
id: root
signal clicked
signal pressed
signal released
property var imgUrl: ""
property alias fillMode: image.fillMode
Image {
id: image
anchors.fill: parent
source: imgUrl
height: parent.height
width: parent.width
}
MouseArea {
anchors.fill: root
onClicked: { root.clicked() }
onPressed: { root.pressed() }
onReleased: { root.released() }
}
}