mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-19 20:01:48 -05:00
29 lines
405 B
QML
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() }
|
|
}
|
|
}
|