PX4FlowSensor.qml 1.12 KB
Newer Older
1 2
/****************************************************************************
 *
Gus Grubba's avatar
Gus Grubba committed
3
 * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
4 5 6 7 8
 *
 * QGroundControl is licensed according to the terms in the file
 * COPYING.md in the root of the source code directory.
 *
 ****************************************************************************/
dogmaphobic's avatar
dogmaphobic committed
9 10


11 12
import QtQuick                  2.3
import QtQuick.Controls         1.2
13
import QtQuick.Controls.Styles  1.4
14
import QtQuick.Dialogs          1.2
dogmaphobic's avatar
dogmaphobic committed
15

16 17 18
import QGroundControl                       1.0
import QGroundControl.Controls              1.0
import QGroundControl.ScreenTools           1.0
dogmaphobic's avatar
dogmaphobic committed
19

20 21 22 23 24 25 26 27 28 29 30 31 32
Item {
    QGCLabel {
        id:             titleLabel
        text:           qsTr("PX4Flow Camera")
        font.family:    ScreenTools.demiboldFontFamily
    }
    Image {
        source:         activeVehicle ? "image://QGCImages/" + activeVehicle.id + "/" + activeVehicle.flowImageIndex : ""
        width:          parent.width * 0.5
        height:         width * 0.75
        cache:          false
        fillMode:       Image.PreserveAspectFit
        anchors.centerIn: parent
dogmaphobic's avatar
dogmaphobic committed
33 34
    }
}