SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
SC_ComboBoxIntegerValidator Class Reference
Inheritance diagram for SC_ComboBoxIntegerValidator:

Public Member Functions

 SC_ComboBoxIntegerValidator (int lowerBoundIntegerInclusive, int upperBoundIntegerInclusive, QComboBox *parent)
 
QValidator::State isNumberValid (int number) const
 
bool isNumberInRange (int number) const
 
void stripNonNumbersAndAdjustCursorPos (QString &input, int &cursorPos) const
 
void fixup (QString &input) const override
 
QValidator::State validate (QString &input, int &cursorPos) const override
 

Static Public Member Functions

static SC_ComboBoxIntegerValidatorCreateBoundlessValidator (QComboBox *parent=nullptr)
 
static SC_ComboBoxIntegerValidatorCreateUpperBoundValidator (int upperBound, QComboBox *parent=nullptr)
 
static SC_ComboBoxIntegerValidatorCreateLowerBoundValidator (int lowerBound, QComboBox *parent=nullptr)
 
static QComboBox * ApplyValidatorToComboBox (QValidator *validator, QComboBox *comboBox)