5import QGroundControl.Controls
9 implicitWidth: mainLayout.width + (_toolsMargin * 2)
10 implicitHeight: mainLayout.height + (_toolsMargin * 2)
12 property real extraWidth: 0 ///< Extra width to add to the background rectangle
14 property alias factValueGrid: factValueGrid
15 property alias settingsGroup: factValueGrid.settingsGroup
16 property alias specificVehicleForCard: factValueGrid.specificVehicleForCard
20 width: control.width + extraWidth
21 height: control.height
23 radius: ScreenTools.defaultFontPixelWidth / 2
29 anchors.margins: _toolsMargin
30 anchors.bottom: parent.bottom
31 anchors.left: parent.left
34 visible: factValueGrid.settingsUnlocked
37 source: "qrc:/InstrumentValueIcons/lock-open.svg"
39 width: ScreenTools.minTouchPixels * 0.75
41 sourceSize.width: width
43 fillMode: Image.PreserveAspectFit
47 onClicked: factValueGrid.settingsUnlocked = false
52 HorizontalFactValueGrid {
61 width: mainLayout.width
62 height: mainLayout.height
63 acceptedButtons: Qt.LeftButton | Qt.RightButton
64 propagateComposedEvents: true
65 visible: !factValueGrid.settingsUnlocked
67 onClicked: (mouse) => {
68 if (!ScreenTools.isMobile && mouse.button === Qt.RightButton) {
69 factValueGrid.settingsUnlocked = true
74 onPressAndHold: (mouse) => {
75 factValueGrid.settingsUnlocked = true