OGS
|
A validator for an input field which only accepts integers. Source code adapted from Qt developer faq: https://web.archive.org/web/20100702180529/http://developer.qt.nokia.com/faq/answer/i_can_still_insert_numbers_outside_the_range_specified_with_a_qdoublevalida.
Definition at line 24 of file StrictIntValidator.h.
#include <StrictIntValidator.h>
Public Member Functions | |
StrictIntValidator (int min, int max, QObject *parent=nullptr) | |
QValidator::State | validate (QString &input, int &pos) const override |
|
inline |
Definition at line 27 of file StrictIntValidator.h.
|
inlineoverride |
Definition at line 32 of file StrictIntValidator.h.