1 #ifndef WIDGETS_CLEARSPINBOX_H
2 #define WIDGETS_CLEARSPINBOX_H
9 QT_FORWARD_DECLARE_CLASS(QHBoxLayout)
17 Q_PROPERTY(
bool cleared READ isCleared)
18 Q_PROPERTY(
bool minimumHidden READ minimumHidden WRITE setMinimumHidden)
19 Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText)
24 bool minimumHidden()
const;
25 void setMinimumHidden(
bool value);
26 QString placeholderText()
const;
27 void setPlaceholderText(
const QString &placeholderText);
28 bool isCleared()
const override;
31 int valueFromText(
const QString &
text)
const override;
32 QString textFromValue(
int val)
const override;
35 void handleValueChanged(
int value);
36 void handleClearButtonClicked()
override;
37 void handleCustomLayoutCreated()
override;
48 return m_minimumHidden;
56 m_minimumHidden = value;
65 return lineEdit()->placeholderText();
A QSpinBox with an embedded button for clearing its contents and the ability to hide the minimum valu...
void setMinimumHidden(bool value)
Sets whether the minimum value should be hidden.
void setPlaceholderText(const QString &placeholderText)
Sets the placeholder text.
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.