QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ConfigRowsFilterBar.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6
7/// Show-all / show-some toggle with a count summary. Extra children follow the summary.
8RowLayout {
9 property alias filterLabels: filterBar.model
10 property alias filterIndex: filterBar.currentIndex
11 property alias summary: summaryLabel.text
12
13 signal filterActivated(int index)
14
15 Layout.fillWidth: true
16 spacing: ScreenTools.defaultFontPixelHeight * 0.5
17
18 QGCPalette { id: qgcPal }
19
20 QGCRadioButtonBar {
21 id: filterBar
22 onActivated: (index) => filterActivated(index)
23 }
24
25 QGCLabel {
26 id: summaryLabel
27 Layout.fillWidth: true
28 color: qgcPal.textSecondary
29 }
30}