equal
deleted
inserted
replaced
103 explicit QIntValidator(QObject * parent = 0); |
103 explicit QIntValidator(QObject * parent = 0); |
104 QIntValidator(int bottom, int top, QObject * parent); |
104 QIntValidator(int bottom, int top, QObject * parent); |
105 ~QIntValidator(); |
105 ~QIntValidator(); |
106 |
106 |
107 QValidator::State validate(QString &, int &) const; |
107 QValidator::State validate(QString &, int &) const; |
|
108 void fixup(QString &input) const; |
108 |
109 |
109 void setBottom(int); |
110 void setBottom(int); |
110 void setTop(int); |
111 void setTop(int); |
111 virtual void setRange(int bottom, int top); |
112 virtual void setRange(int bottom, int top); |
112 |
113 |
134 { |
135 { |
135 Q_OBJECT |
136 Q_OBJECT |
136 Q_PROPERTY(double bottom READ bottom WRITE setBottom) |
137 Q_PROPERTY(double bottom READ bottom WRITE setBottom) |
137 Q_PROPERTY(double top READ top WRITE setTop) |
138 Q_PROPERTY(double top READ top WRITE setTop) |
138 Q_PROPERTY(int decimals READ decimals WRITE setDecimals) |
139 Q_PROPERTY(int decimals READ decimals WRITE setDecimals) |
|
140 Q_ENUMS(Notation) |
139 Q_PROPERTY(Notation notation READ notation WRITE setNotation) |
141 Q_PROPERTY(Notation notation READ notation WRITE setNotation) |
140 |
142 |
141 public: |
143 public: |
142 explicit QDoubleValidator(QObject * parent); |
144 explicit QDoubleValidator(QObject * parent = 0); |
143 QDoubleValidator(double bottom, double top, int decimals, QObject * parent); |
145 QDoubleValidator(double bottom, double top, int decimals, QObject * parent); |
144 ~QDoubleValidator(); |
146 ~QDoubleValidator(); |
145 |
147 |
146 enum Notation { |
148 enum Notation { |
147 StandardNotation, |
149 StandardNotation, |
181 { |
183 { |
182 Q_OBJECT |
184 Q_OBJECT |
183 Q_PROPERTY(QRegExp regExp READ regExp WRITE setRegExp) |
185 Q_PROPERTY(QRegExp regExp READ regExp WRITE setRegExp) |
184 |
186 |
185 public: |
187 public: |
186 explicit QRegExpValidator(QObject *parent); |
188 explicit QRegExpValidator(QObject *parent = 0); |
187 QRegExpValidator(const QRegExp& rx, QObject *parent); |
189 QRegExpValidator(const QRegExp& rx, QObject *parent); |
188 ~QRegExpValidator(); |
190 ~QRegExpValidator(); |
189 |
191 |
190 virtual QValidator::State validate(QString& input, int& pos) const; |
192 virtual QValidator::State validate(QString& input, int& pos) const; |
191 |
193 |