|
QGroundControl
Ground Control Station for MAVLink Drones
|
QGCMapPalette is a variant of QGCPalette which is used to hold colors used for display over the map control. More...
#include <QGCMapPalette.h>
Inheritance diagram for QGCMapPalette:
Collaboration diagram for QGCMapPalette:Signals | |
| void | paletteChanged (void) |
| void | lightColorsChanged (bool lightColors) |
Public Member Functions | |
| QGCMapPalette (QObject *parent=nullptr) | |
| QColor | text (void) const |
| Text color. | |
| QColor | textOutline (void) const |
| bool | lightColors (void) const |
| void | setLightColors (bool lightColors) |
QGCMapPalette is a variant of QGCPalette which is used to hold colors used for display over the map control.
Since the coloring of a satellite map differs greatly from the coloring of a street map you need to be able to switch between sets of color based on map type.
Usage:
1.0
FlightMap {
id: map
anchors.fill: parent
QGCMapPalette { id: mapPal: lightColors: map.isSatelliteMap }
QGCLabel {
text: "Text over map"
color: mapPal.text
}
}
Definition at line 29 of file QGCMapPalette.h.
| QGCMapPalette::QGCMapPalette | ( | QObject * | parent = nullptr | ) |
Definition at line 6 of file QGCMapPalette.cc.
|
inline |
Definition at line 46 of file QGCMapPalette.h.
Referenced by setLightColors().
|
signal |
|
signal |
Referenced by setLightColors().
| void QGCMapPalette::setLightColors | ( | bool | lightColors | ) |
Definition at line 12 of file QGCMapPalette.cc.
References lightColors(), and paletteChanged().
|
inline |
Text color.
Definition at line 43 of file QGCMapPalette.h.
|
inline |
Definition at line 44 of file QGCMapPalette.h.