![]() |
Radium Engine
1.5.0
|
Constrained input spin box. The constraint to apply to any input value is verified using the user-define predicate associated to the object. More...
#include <Gui/Widgets/ConstrainedNumericSpinBox.hpp>
Inherits QtSpinBox::getType::Type.
Public Types | |
using | BaseWidget = typename QtSpinBox::getType< T >::Type |
using | Predicate = std::function< bool(T)> |
Public Member Functions | |
QValidator::State | validate (QString &input, int &) const override |
void | setPredicate (Predicate p) |
Set the predicate to evaluate. | |
bool | isValid (T s) const |
Validate a value. More... | |
Constrained input spin box. The constraint to apply to any input value is verified using the user-define predicate associated to the object.
T | Type of the constrained value to input |
Definition at line 18 of file ConstrainedNumericSpinBox.hpp.
|
inline |
Validate a value.
s |
Definition at line 33 of file ConstrainedNumericSpinBox.hpp.