FactTextField.qml 331 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
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 {
Don Gagne's avatar
Don Gagne committed
10
    property Fact fact: null
11 12 13 14
    text: fact.valueString
    unitsLabel: fact.units
    onEditingFinished: fact.value = text
}