* Remove the execute permission on all c, cpp, and header files. * These files will never need to be executed.
25 lines
458 B
C++
25 lines
458 B
C++
#ifndef HEXSPINBOX_H_
|
|
#define HEXSPINBOX_H_
|
|
|
|
#include <QSpinBox>
|
|
|
|
class QRegExpValidator;
|
|
|
|
class HexSpinBox : public QSpinBox
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
HexSpinBox(QWidget *parent = 0);
|
|
|
|
protected:
|
|
QValidator::State validate(QString &text, int &pos) const;
|
|
int valueFromText(const QString &text) const;
|
|
QString textFromValue(int value) const;
|
|
|
|
private:
|
|
QRegExpValidator *validator;
|
|
};
|
|
|
|
#endif /* HEXSPINBOX_H_ */
|