33 Q_PROPERTY(
double scale READ scale WRITE setScale NOTIFY scaleChanged )
34 Q_PROPERTY(
double minScale READ minScale WRITE setMinScale )
46 QString scaleString() const;
52 bool setScaleString( const QString &
string );
76 double minScale()
const {
return mMinScale; }
85 static QString toString(
double scale );
93 static double toDouble(
const QString &
string,
bool *ok =
nullptr );
102 void setAllowNull(
bool allowNull );
111 bool allowNull()
const;
121 void setPredefinedScales(
const QVector<double> &scales );
137 void updateScales(
const QStringList &scales = QStringList() );
144 void setScale(
double scale );
152 void setMinScale(
double scale );
166 void showPopup()
override;
173 double mMinScale = 0.0;
174 bool mAllowNull =
false;