summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-02-08 14:04:32 +0100
committerAlan Alpert <alan.alpert@nokia.com>2010-02-08 15:26:58 +0100
commit3e8e1b369752d8a0b42f088f577f3d33eb29f8a9 (patch)
treec6cd3a3ef87c0dedbe66c22627179bfbb9f67747
parent322fb5291f91ab389300ec5e28155bf881bcd518 (diff)
Add empty constructor for validators.
Needed to use them in QML. Also adds Q_ENUMS macro for an enum used by QDoubleValidator. Reviewed-by: trustme
-rw-r--r--src/gui/widgets/qvalidator.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/qvalidator.h b/src/gui/widgets/qvalidator.h
index e996a0128d..63734ca21d 100644
--- a/src/gui/widgets/qvalidator.h
+++ b/src/gui/widgets/qvalidator.h
@@ -137,10 +137,11 @@ class Q_GUI_EXPORT QDoubleValidator : public QValidator
Q_PROPERTY(double bottom READ bottom WRITE setBottom)
Q_PROPERTY(double top READ top WRITE setTop)
Q_PROPERTY(int decimals READ decimals WRITE setDecimals)
+ Q_ENUMS(Notation)
Q_PROPERTY(Notation notation READ notation WRITE setNotation)
public:
- explicit QDoubleValidator(QObject * parent);
+ explicit QDoubleValidator(QObject * parent = 0);
QDoubleValidator(double bottom, double top, int decimals, QObject * parent);
~QDoubleValidator();
@@ -184,7 +185,7 @@ class Q_GUI_EXPORT QRegExpValidator : public QValidator
Q_PROPERTY(QRegExp regExp READ regExp WRITE setRegExp)
public:
- explicit QRegExpValidator(QObject *parent);
+ explicit QRegExpValidator(QObject *parent = 0);
QRegExpValidator(const QRegExp& rx, QObject *parent);
~QRegExpValidator();