FactComboBox.qml 304 Bytes
Newer Older
Don Gagne's avatar
Don Gagne committed
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

QGCComboBox {
10
    property Fact fact: Fact { }
Don Gagne's avatar
Don Gagne committed
11 12 13
    currentIndex: fact.value
    onActivated: fact.value = index
}