12 #ifndef QmitkNumberPropertyEditor_h
13 #define QmitkNumberPropertyEditor_h
24 Q_PROPERTY(
short decimalPlaces READ getDecimalPlaces WRITE setDecimalPlaces)
25 Q_PROPERTY(
bool showPercent READ getShowPercent WRITE setShowPercent)
26 Q_PROPERTY(
int minValue READ minValue WRITE setMinValue)
27 Q_PROPERTY(
int maxValue READ maxValue WRITE setMaxValue)
36 short getDecimalPlaces() const;
37 void setDecimalPlaces(
short);
39 bool getShowPercent() const;
40 void setShowPercent(
bool);
43 void setMinValue(
int);
45 void setMaxValue(
int);
46 double doubleValue() const;
47 void setDoubleValue(
double);
52 QString textFromValue(
int) const override;
53 int valueFromText(const QString &) const override;
55 void PropertyChanged() override;
56 void PropertyRemoved() override;
75 void onValueChanged(
int);
78 void adjustFactors(
short,
bool);
80 bool m_SelfChangeLock;