C

Qt Quick Ultralite Automotive Cluster Demo

// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial

import QtQuick 2.15
import Automotive 1.0

NormalModeContentItem  {
    id: root
    property real scale: 1

    Row {
        y:151 + 14 - height;
        anchors.horizontalCenter: parent.horizontalCenter;
        spacing: 4

        Text {
            text: NaviModel.filteredDistanceToNextManoeuver;
            font.bold: true;
            font.pixelSize: 24;
            font.family: "Sarabun";
            color: Style.lightPeriwinkle
        }

        Text {
            text: Units.shortDistanceUnit;
            font.bold: true;
            font.pixelSize: 24;
            font.family: "Sarabun";
            color: Style.lightPeriwinkle
        }
    }

    Text {
        id: instruction
        y:178;
        anchors.horizontalCenter: parent.horizontalCenter;
        text: NaviModel.instruction
        font.bold: true;
        font.pixelSize: 14
        font.family: "Sarabun";
        color: Style.lightPeriwinkle
    }
    Text {
        anchors.top: instruction.bottom
        anchors.topMargin: 5
        anchors.horizontalCenter: parent.horizontalCenter;
        text: NaviModel.street
        font.bold: true;
        font.pixelSize: 18
        font.family: "Sarabun";
        color: Style.lightPeriwinkle
    }
}