58 Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment)
59 Q_PROPERTY(
bool frame READ hasFrame WRITE setFrame)
60 Q_PROPERTY(QString prefix READ prefix WRITE setPrefix)
61 Q_PROPERTY(QString suffix READ suffix WRITE setSuffix)
62 Q_PROPERTY(QString cleanText READ cleanText)
73 Q_PROPERTY(
int decimals READ decimals WRITE setDecimals NOTIFY decimalsChanged)
78 Q_PROPERTY(DecimalsOptions decimalsOption READ decimalsOption WRITE setDecimalsOption)
79 Q_PROPERTY(
double minimum READ minimum WRITE setMinimum)
80 Q_PROPERTY(
double maximum READ maximum WRITE setMaximum)
81 Q_PROPERTY(
double singleStep READ singleStep WRITE setSingleStep)
83 Q_PROPERTY(
double value READ value WRITE setValue NOTIFY valueChanged USER true)
86 Q_PROPERTY(
SetMode setMode READ setMode WRITE setSetMode)
92 Q_PROPERTY(
bool invertedControls READ invertedControls WRITE setInvertedControls)
96 Q_PROPERTY(SizeHintPolicy sizeHintPolicy READ sizeHintPolicy WRITE setSizeHintPolicy)
98 Q_PROPERTY(
bool keyboardTracking READ keyboardTracking WRITE setKeyboardTracking)
125 FixedDecimals = 0x000,
130 DecimalsByShortcuts = 0x001,
134 DecimalsByKey = 0x002,
137 DecimalsByValue = 0x004,
142 InsertDecimals = 0x008,
148 ReplaceDecimals = 0x010,
151 DecimalsAsMax = 0x020,
154 DecimalsAsMin = 0x040,
158 DecimalPointAlwaysVisible = 0x080
160 Q_DECLARE_FLAGS(DecimalsOptions, DecimalsOption)
171 Q_ENUM(SizeHintPolicy)
172 Q_FLAG(DecimalsOptions)
174 typedef QWidget Superclass;
184 double value()
const;
188 double displayedValue()
const;
195 void setDisplayedValue(
double displayValue);
199 QString text()
const;
203 QString cleanText()
const;
206 Qt::Alignment alignment ()
const;
207 void setAlignment (Qt::Alignment flag);
210 void setFrame(
bool frame);
211 bool hasFrame()
const;
216 QString prefix()
const;
217 void setPrefix(
const QString &prefix);
222 QString suffix()
const;
223 void setSuffix(
const QString &suffix);
229 double singleStep()
const;
230 void setSingleStep(
double value);
233 double minimum()
const;
234 void setMinimum(
double min);
235 double maximum()
const;
236 void setMaximum(
double max);
237 void setRange(
double min,
double max);
242 int decimals()
const;
247 double round(
double value)
const;
252 QDoubleSpinBox* spinBox()
const;
256 QLineEdit* lineEdit()
const;
261 void setSetMode(SetMode mode);
266 void setDecimalsOption(DoubleSpinBox::DecimalsOptions option);
273 void setInvertedControls(
bool invertedControls);
274 bool invertedControls()
const;
278 void setSizeHintPolicy(SizeHintPolicy newSizeHintPolicy);
281 SizeHintPolicy sizeHintPolicy()
const;
296 virtual QSize sizeHint()
const;
299 virtual QSize minimumSizeHint()
const;
301 void setKeyboardTracking(
bool kt);
302 bool keyboardTracking()
const;
307 void setValue(
double value);
311 void setValueIfDifferent(
double value);
315 void setValueAlways(
double value);
324 void setDecimals(
int decimal);
330 void valueChanged(
const QString &);
343 virtual void keyPressEvent(QKeyEvent* event);
345 virtual bool eventFilter(QObject *obj, QEvent *event);
347 friend class CoordinatesWidgetPrivate;