16 #ifndef QGSQUICKSCALEBARKIT_H
17 #define QGSQUICKSCALEBARKIT_H
22 #include "qgis_quick.h"
54 Q_PROPERTY(
QgsQuickMapSettings *mapSettings MEMBER mMapSettings WRITE setMapSettings NOTIFY mapSettingsChanged )
59 Q_PROPERTY(
int preferredWidth MEMBER mPreferredWidth NOTIFY preferredWidthChanged )
69 Q_PROPERTY( QString units READ units NOTIFY scaleBarChanged )
76 Q_PROPERTY(
int distance READ distance NOTIFY scaleBarChanged )
82 Q_PROPERTY(
int width READ width NOTIFY scaleBarChanged )
105 QString units()
const;
125 void updateScaleBar();
The QgsQuickMapSettings class encapsulates QgsMapSettings class to offer settings of configuration of...
The class QgsQuickScaleBarKit encapsulates the utilities to calculate scale bar properties.
void systemOfMeasurementChanged()
Preferred system of measurement for the result.
~QgsQuickScaleBarKit()=default
void scaleBarChanged()
width, distance and/or units changed
void preferredWidthChanged()
Preferred width of scalebar in pixels.
void mapSettingsChanged()
Associated map settings.
SystemOfMeasurement
Systems of unit measurement.
@ MetricSystem
International System of Units (SI)