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 )
    64     Q_PROPERTY( 
QgsUnitTypes::SystemOfMeasurement systemOfMeasurement MEMBER mSystemOfMeasurement NOTIFY systemOfMeasurementChanged )
    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;
   112     void scaleBarChanged();
   115     void mapSettingsChanged();
   118     void preferredWidthChanged();
   121     void systemOfMeasurementChanged();
   125     void updateScaleBar();
   137 #endif // QGSQUICKSCALEBARKIT_H The class QgsQuickScaleBarKit encapsulates the utilities to calculate scale bar properties. 
 
Helper functions for various unit types. 
 
The QgsQuickMapSettings class encapsulates QgsMapSettings class to offer settings of configuration of...