js8call/.svn/pristine/08/08c65d5f44b5775460c61d11033cb1c8b5019199.svn-base

26 lines
466 B
Plaintext
Raw Normal View History

2018-02-08 21:28:33 -05:00
#ifndef RESTRICTED_SPIN_BOX_HPP_
#define RESTRICTED_SPIN_BOX_HPP_
#include "HintedSpinBox.hpp"
class QString;
//
// RestrictedSpinBox - select only from a sequence of values
//
class RestrictedSpinBox final
: public HintedSpinBox
{
public:
RestrictedSpinBox (QWidget * parent = nullptr)
: HintedSpinBox {parent}
{
}
protected:
// override the base class validation
QValidator::State validate (QString& input, int& pos) const override;
};
#endif