lqml/examples/meshtastic/qml/ext/common/MainIcon.qml

14 lines
336 B
QML

import QtQuick 2.15
Image {
horizontalAlignment: Image.AlignHCenter
verticalAlignment: Image.AlignVCenter
width: header.height
height: width
MouseArea {
anchors.fill: parent
onClicked: swipeView.currentIndex = parent.Positioner.index
onPressAndHold: Lisp.call("app:icon-press-and-hold", parent.objectName)
}
}