summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qvalidator.h
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-07-29 07:14:49 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-07-29 07:25:44 (GMT)
commitfb7d86cf23227302d48db279ec589221d11a1f6a (patch)
treefc3022e03fe9f56d568abc6df57f154b1a58c778 /src/gui/widgets/qvalidator.h
parenta45fe18569be1fc91e26f6e58d2f16bc8c6958de (diff)
downloadQt-fb7d86cf23227302d48db279ec589221d11a1f6a.zip
Qt-fb7d86cf23227302d48db279ec589221d11a1f6a.tar.gz
Qt-fb7d86cf23227302d48db279ec589221d11a1f6a.tar.bz2
Move QLineEdit logic into QLineControl
Manually merged from the kinetic repository, where it has been used for a while. Like QTextControl, there is no auto test for the control, just for the widgets built with it. The purpose of this change is so that we can build stuff like QLineEdit in other places (like kinetic). Also included is a trivial change to QValidator, needed to use it with QLineControl in QML. Reviewed-by: mbm
Diffstat (limited to 'src/gui/widgets/qvalidator.h')
-rw-r--r--src/gui/widgets/qvalidator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qvalidator.h b/src/gui/widgets/qvalidator.h
index ce78959..5c27d1d 100644
--- a/src/gui/widgets/qvalidator.h
+++ b/src/gui/widgets/qvalidator.h
@@ -61,7 +61,7 @@ class Q_GUI_EXPORT QValidator : public QObject
{
Q_OBJECT
public:
- explicit QValidator(QObject * parent);
+ explicit QValidator(QObject * parent=0);
~QValidator();
enum State {
@@ -100,7 +100,7 @@ class Q_GUI_EXPORT QIntValidator : public QValidator
Q_PROPERTY(int top READ top WRITE setTop)
public:
- explicit QIntValidator(QObject * parent);
+ explicit QIntValidator(QObject * parent=0);
QIntValidator(int bottom, int top, QObject * parent);
~QIntValidator();