18 #ifndef QGSSCALECOMBOBOX_H 19 #define QGSSCALECOMBOBOX_H 33 Q_PROPERTY(
double scale READ scale WRITE setScale NOTIFY scaleChanged )
34 Q_PROPERTY(
double minScale READ minScale WRITE setMinScale )
47 QString scaleString() const;
53 bool setScaleString( const QString &
string );
68 double minScale()
const {
return mMinScale; }
77 static QString toString(
double scale );
85 static double toDouble(
const QString &
string,
bool *ok =
nullptr );
93 void scaleChanged(
double scale );
101 void updateScales(
const QStringList &scales = QStringList() );
108 void setScale(
double scale );
116 void setMinScale(
double scale );
119 void showPopup()
override;
126 double mMinScale = 0.0;
129 #endif // QGSSCALECOMBOBOX_H
A combobox which lets the user select map scale from predefined list and highlights nearest to curren...