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 );
77 double minScale()
const {
return mMinScale; }
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;
122 void setPredefinedScales(
const QVector< double > &scales );
138 void updateScales(
const QStringList &scales = QStringList() );
145 void setScale(
double scale );
153 void setMinScale(
double scale );
167 void showPopup()
override;
174 double mMinScale = 0.0;
175 bool mAllowNull =
false;