1
0
Fork 0
flightgear/src/GUI/qml/ArrowButton.qml
James Turner 4c2e52c2dc Standardise QtQuick version to 2.4
Will fix an issue reported on the forum where a 2.7 dep crept it.
2018-03-19 08:22:11 +00:00

34 lines
523 B
QML

import QtQuick 2.4
Item {
id: root
signal clicked;
property alias arrow: img.source
implicitWidth: img.width + 4
implicitHeight: img.height + 4
Rectangle {
visible: mouse.containsMouse
radius: 3
anchors.fill: parent
color: "#1b7ad3"
}
Image {
id: img
anchors.centerIn: parent
}
MouseArea {
id: mouse
anchors.fill: parent
hoverEnabled: true
onClicked: {
root.clicked();
}
}
}