From 3fd9398052d2b483d2830c3661ceed26e551fa49 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 28 Sep 2011 22:20:06 +0200 Subject: Remove the remaining traces of QT3_SUPPORT The only place that now still knows about it is moc, so it can still parse old headers. Change-Id: Iafec080f99c67560974e9ebc0cbfb27d9a4b2d6f Reviewed-on: http://codereview.qt-project.org/5755 Reviewed-by: Qt Sanity Bot Reviewed-by: Friedemann Kleint --- src/gui/accessible/qaccessible.h | 3 - src/gui/util/qvalidator.cpp | 115 --------------------------------------- src/gui/util/qvalidator.h | 24 -------- 3 files changed, 142 deletions(-) (limited to 'src/gui') diff --git a/src/gui/accessible/qaccessible.h b/src/gui/accessible/qaccessible.h index a5e9945718..314a285625 100644 --- a/src/gui/accessible/qaccessible.h +++ b/src/gui/accessible/qaccessible.h @@ -164,9 +164,6 @@ public: Offscreen = 0x00010000, Sizeable = 0x00020000, Movable = 0x00040000, -#ifdef QT3_SUPPORT - Moveable = Movable, -#endif SelfVoicing = 0x00080000, Focusable = 0x00100000, Selectable = 0x00200000, diff --git a/src/gui/util/qvalidator.cpp b/src/gui/util/qvalidator.cpp index 43251a8829..4420163866 100644 --- a/src/gui/util/qvalidator.cpp +++ b/src/gui/util/qvalidator.cpp @@ -215,20 +215,6 @@ QValidator::QValidator(QObject * parent) { } -#ifdef QT3_SUPPORT -/*! - \obsolete - Sets up the validator. The \a parent and \a name parameters are - passed on to the QObject constructor. -*/ - -QValidator::QValidator(QObject * parent, const char *name) - : QObject(*new QValidatorPrivate, parent) -{ - setObjectName(QString::fromAscii(name)); -} -#endif - /*! Destroys the validator, freeing any storage and other resources used. @@ -360,40 +346,6 @@ QIntValidator::QIntValidator(int minimum, int maximum, } -#ifdef QT3_SUPPORT -/*! - \obsolete - - Constructs a validator with a \a parent object and a \a name that - accepts all integers. -*/ - -QIntValidator::QIntValidator(QObject * parent, const char *name) - : QValidator(parent) -{ - setObjectName(QString::fromAscii(name)); - b = INT_MIN; - t = INT_MAX; -} - - -/*! - \obsolete - - Constructs a validator called \a name with a \a parent, that - accepts integers from \a minimum to \a maximum inclusive. -*/ - -QIntValidator::QIntValidator(int minimum, int maximum, - QObject * parent, const char* name) - : QValidator(parent) -{ - setObjectName(QString::fromAscii(name)); - b = minimum; - t = maximum; -} -#endif - /*! Destroys the validator. */ @@ -640,42 +592,6 @@ QDoubleValidator::QDoubleValidator(double bottom, double top, int decimals, dec = decimals; } -#ifdef QT3_SUPPORT -/*! - \obsolete - - Constructs a validator object with a \a parent object and a \a name - that accepts any double. -*/ - -QDoubleValidator::QDoubleValidator(QObject * parent, const char *name) - : QValidator(*new QDoubleValidatorPrivate , parent) -{ - setObjectName(QString::fromAscii(name)); - b = -HUGE_VAL; - t = HUGE_VAL; - dec = 1000; -} - - -/*! - \obsolete - - Constructs a validator object with a \a parent object, called \a - name. This validator will accept doubles from \a bottom to \a top - inclusive, with up to \a decimals digits after the decimal point. -*/ - -QDoubleValidator::QDoubleValidator(double bottom, double top, int decimals, - QObject * parent, const char* name) - : QValidator(*new QDoubleValidatorPrivate, parent) -{ - setObjectName(QString::fromAscii(name)); - b = bottom; - t = top; - dec = decimals; -} -#endif /*! Destroys the validator. @@ -920,37 +836,6 @@ QRegExpValidator::QRegExpValidator(const QRegExp& rx, QObject *parent) { } -#ifdef QT3_SUPPORT -/*! - \obsolete - - Constructs a validator with a \a parent object and \a name that accepts - any string (including an empty one) as valid. -*/ - -QRegExpValidator::QRegExpValidator(QObject *parent, const char *name) - : QValidator(parent), r(QString::fromLatin1(".*")) -{ - setObjectName(QString::fromAscii(name)); -} - -/*! - \obsolete - - Constructs a validator with a \a parent object and a \a name that - accepts all strings that match the regular expression \a rx. - - The match is made against the entire string; e.g. if the regexp is - \bold{[A-Fa-f0-9]+} it will be treated as \bold{^[A-Fa-f0-9]+$}. -*/ - -QRegExpValidator::QRegExpValidator(const QRegExp& rx, QObject *parent, - const char *name) - : QValidator(parent), r(rx) -{ - setObjectName(QString::fromAscii(name)); -} -#endif /*! Destroys the validator. diff --git a/src/gui/util/qvalidator.h b/src/gui/util/qvalidator.h index cb0436cc3e..5ea7fef4fc 100644 --- a/src/gui/util/qvalidator.h +++ b/src/gui/util/qvalidator.h @@ -68,10 +68,6 @@ public: Invalid, Intermediate, Acceptable - -#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN) - , Valid = Intermediate -#endif }; void setLocale(const QLocale &locale); @@ -80,10 +76,6 @@ public: virtual State validate(QString &, int &) const = 0; virtual void fixup(QString &) const; -#ifdef QT3_SUPPORT -public: - QT3_SUPPORT_CONSTRUCTOR QValidator(QObject * parent, const char *name); -#endif protected: QValidator(QObjectPrivate &d, QObject *parent); QValidator(QValidatorPrivate &d, QObject *parent); @@ -116,11 +108,6 @@ public: Q_SIGNALS: void bottomChanged(int bottom); void topChanged(int top); -#ifdef QT3_SUPPORT -public: - QT3_SUPPORT_CONSTRUCTOR QIntValidator(QObject * parent, const char *name); - QT3_SUPPORT_CONSTRUCTOR QIntValidator(int bottom, int top, QObject * parent, const char *name); -#endif private: Q_DISABLE_COPY(QIntValidator) @@ -170,12 +157,6 @@ Q_SIGNALS: void decimalsChanged(int decimals); void notationChanged(QDoubleValidator::Notation notation); -#ifdef QT3_SUPPORT -public: - QT3_SUPPORT_CONSTRUCTOR QDoubleValidator(QObject * parent, const char *name); - QT3_SUPPORT_CONSTRUCTOR QDoubleValidator(double bottom, double top, int decimals, - QObject * parent, const char *name); -#endif private: Q_DECLARE_PRIVATE(QDoubleValidator) Q_DISABLE_COPY(QDoubleValidator) @@ -203,11 +184,6 @@ public: Q_SIGNALS: void regExpChanged(const QRegExp& regExp); -#ifdef QT3_SUPPORT -public: - QT3_SUPPORT_CONSTRUCTOR QRegExpValidator(QObject *parent, const char *name); - QT3_SUPPORT_CONSTRUCTOR QRegExpValidator(const QRegExp& rx, QObject *parent, const char *name); -#endif private: Q_DISABLE_COPY(QRegExpValidator) -- cgit v1.2.3