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()
QtUtilities::ClearSpinBox::ClearSpinBox |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~ClearSpinBox()
QtUtilities::ClearSpinBox::~ClearSpinBox |
( |
| ) |
|
|
override |
◆ isCleared()
bool QtUtilities::ClearSpinBox::isCleared |
( |
| ) |
const |
|
overridevirtual |
◆ minimumHidden()
bool QtUtilities::ClearSpinBox::minimumHidden |
( |
| ) |
const |
|
inline |
Returns whether the minimum value will be hidden.
Definition at line 45 of file clearspinbox.h.
◆ placeholderText()
QString QtUtilities::ClearSpinBox::placeholderText |
( |
| ) |
const |
|
inline |
Returns the placeholder text.
- See also
- QLineEdit::placeholderText()
Definition at line 62 of file clearspinbox.h.
◆ setMinimumHidden()
void QtUtilities::ClearSpinBox::setMinimumHidden |
( |
bool |
value | ) |
|
|
inline |
Sets whether the minimum value should be hidden.
Definition at line 53 of file clearspinbox.h.
◆ setPlaceholderText()
void QtUtilities::ClearSpinBox::setPlaceholderText |
( |
const QString & |
placeholderText | ) |
|
|
inline |
Sets the placeholder text.
- See also
- QLineEdit::setPlaceholderText()
Definition at line 71 of file clearspinbox.h.
◆ textFromValue()
QString QtUtilities::ClearSpinBox::textFromValue |
( |
int |
val | ) |
const |
|
overrideprotected |
◆ valueFromText()
int QtUtilities::ClearSpinBox::valueFromText |
( |
const QString & |
text | ) |
const |
|
overrideprotected |
◆ cleared
bool QtUtilities::ClearSpinBox::cleared |
|
read |
◆ minimumHidden
bool QtUtilities::ClearSpinBox::minimumHidden |
|
readwrite |
◆ placeholderText
QString QtUtilities::ClearSpinBox::placeholderText |
|
readwrite |
The documentation for this class was generated from the following files: