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;
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;