Radium Engine
1.5.20
|
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>
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. | |
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.
using Ra::Gui::Widgets::ConstrainedNumericSpinBox< T >::BaseWidget = typename QtSpinBox::getType<T>::Type |
Definition at line 21 of file ConstrainedNumericSpinBox.hpp.
using Ra::Gui::Widgets::ConstrainedNumericSpinBox< T >::Predicate = std::function<bool( T )> |
Definition at line 22 of file ConstrainedNumericSpinBox.hpp.
|
inline |
Validate a value.
s |
Definition at line 33 of file ConstrainedNumericSpinBox.hpp.
|
inline |
Set the predicate to evaluate.
Definition at line 27 of file ConstrainedNumericSpinBox.hpp.
|
override |
Definition at line 40 of file ConstrainedNumericSpinBox.hpp.