Files
evcharger-app/SimpleNavigationItem.qml
T

21 lines
478 B
QML
Raw Normal View History

2024-07-10 22:25:27 +02:00
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
ItemDelegate {
id: navigationItem
property color color
property string component
property var componentArgs: undefined
Layout.fillWidth: true
Component.onCompleted: {
background.radius = 5
2024-07-12 19:44:06 +02:00
background.color = "white"
2024-07-10 22:25:27 +02:00
contentItem.children[0].color = navigationItem.color
}
onClicked: stackView.push(navigationItem.component, navigationItem.componentArgs)
}