blob: a8b8e4511cf9df5cfe37cfcb9c8dd612549cbf8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef HEXSPINBOX_H
#define HEXSPINBOX_H
#include <QSpinBox>
#include <QValidator>
class HexSpinBox : public QSpinBox
{
public:
HexSpinBox(QWidget *parent);
protected:
QString textFromValue(int value) const;
int valueFromText(const QString& text) const;
QValidator::State validate( QString & input, int & pos ) const;
};
#endif
|