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 );
86 static QString toString(
double scale );
94 static double toDouble(
const QString &
string,
bool *ok =
nullptr );
103 void setAllowNull(
bool allowNull );
112 bool allowNull()
const;
128 void updateScales(
const QStringList &scales = QStringList() );
135 void setScale(
double scale );
143 void setMinScale(
double scale );
157 void showPopup()
override;
164 double mMinScale = 0.0;
165 bool mAllowNull =
false;
A combobox which lets the user select map scale from predefined list and highlights nearest to curren...
double minScale() const
Returns the minimum scale, or 0 if no minimum scale set.
void scaleChanged(double scale)
Emitted when user has finished editing/selecting a new scale.