FactTextField.qml 344 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2

import QGroundControl.FactSystem 1.0
import QGroundControl.Palette 1.0
import QGroundControl.Controls 1.0

QGCTextField {
    property Fact fact: Fact { value: 0 }
    text: fact.valueString
    unitsLabel: fact.units
    onEditingFinished: fact.value = text
}