A QSpinBox with an embedded button for clearing its contents and the ability to hide the minimum value.
More...
#include <clearspinbox.h>
A QSpinBox with an embedded button for clearing its contents and the ability to hide the minimum value.
Definition at line 15 of file clearspinbox.h.
◆ ClearSpinBox()
Widgets::ClearSpinBox::ClearSpinBox |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~ClearSpinBox()
Widgets::ClearSpinBox::~ClearSpinBox |
( |
| ) |
|
◆ isCleared()
bool Widgets::ClearSpinBox::isCleared |
( |
| ) |
const |
|
virtual |
Returns whether the related widget is cleared.
This method is meant to be implemented when subclassing.
Reimplemented from Widgets::ButtonOverlay.
◆ minimumHidden()
bool Widgets::ClearSpinBox::minimumHidden |
( |
| ) |
const |
◆ placeholderText()
QString Widgets::ClearSpinBox::placeholderText |
( |
| ) |
const |
◆ setMinimumHidden()
void Widgets::ClearSpinBox::setMinimumHidden |
( |
bool |
value | ) |
|
|
inline |
Sets whether the minimum value should be hidden.
Definition at line 55 of file clearspinbox.h.
◆ setPlaceholderText()
void Widgets::ClearSpinBox::setPlaceholderText |
( |
const QString & |
placeholderText | ) |
|
|
inline |
Sets the placeholder text.
- See also
- QLineEdit::setPlaceholderText()
Definition at line 73 of file clearspinbox.h.
◆ textFromValue()
QString Widgets::ClearSpinBox::textFromValue |
( |
int |
val | ) |
const |
|
protected |
◆ valueFromText()
int Widgets::ClearSpinBox::valueFromText |
( |
const QString & |
text | ) |
const |
|
protected |
◆ isCleared
bool Widgets::ClearSpinBox::isCleared |
|
read |
◆ minimumHidden
bool Widgets::ClearSpinBox::minimumHidden |
|
inlinereadwrite |
Returns whether the minimum value will be hidden.
Definition at line 18 of file clearspinbox.h.
◆ placeholderText
QString Widgets::ClearSpinBox::placeholderText |
|
inlinereadwrite |
Returns the placeholder text.
- See also
- QLineEdit::placeholderText()
Definition at line 19 of file clearspinbox.h.
The documentation for this class was generated from the following files: