mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-07-10 06:50:41 +02:00
40 lines
933 B
QML
40 lines
933 B
QML
//
|
|
// MovingValue.qml
|
|
// scripts/developer/utilities/audio
|
|
//
|
|
// Created by Zach Pomerantz on 9/22/2016
|
|
// Copyright 2016 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
import QtQuick 2.5
|
|
import QtQuick.Controls 1.4
|
|
import QtQuick.Layouts 1.3
|
|
|
|
RowLayout {
|
|
id: value
|
|
property string label
|
|
property var source
|
|
property string unit: "ms"
|
|
|
|
width: parent.width
|
|
property int dataPixelWidth: 150
|
|
|
|
Label {
|
|
Layout.preferredWidth: dataPixelWidth
|
|
text: value.label
|
|
}
|
|
Label {
|
|
Layout.preferredWidth: 0
|
|
horizontalAlignment: Text.AlignRight
|
|
text: value.source + ' ' + unit
|
|
}
|
|
Label {
|
|
Layout.fillWidth: true
|
|
horizontalAlignment: Text.AlignRight
|
|
Layout.alignment: Qt.AlignRight
|
|
text: "Placeholder"
|
|
}
|
|
}
|
|
|