diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2009-10-19 14:25:44 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2009-10-29 16:00:10 (GMT) |
commit | cbef10e1781cdef5ec6dcf0bdeea6506258ee431 (patch) | |
tree | 367311f8d158f07980433bac00338d6b572d264c /src/gui/widgets | |
parent | 6eb1faad9511dde6ab31b9a4f75fce0bdfbdc12c (diff) | |
download | Qt-cbef10e1781cdef5ec6dcf0bdeea6506258ee431.zip Qt-cbef10e1781cdef5ec6dcf0bdeea6506258ee431.tar.gz Qt-cbef10e1781cdef5ec6dcf0bdeea6506258ee431.tar.bz2 |
Fix Validator
Reviewed-by: tom
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qlinecontrol_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/qlinecontrol_p.h b/src/gui/widgets/qlinecontrol_p.h index 68898b6..f8e1a5d 100644 --- a/src/gui/widgets/qlinecontrol_p.h +++ b/src/gui/widgets/qlinecontrol_p.h @@ -174,8 +174,10 @@ public: void setMaxLength(int maxLength); int maxLength() const; +#ifndef QT_NO_VALIDATOR const QValidator *validator() const; void setValidator(const QValidator *); +#endif #ifndef QT_NO_COMPLETER QCompleter *completer() const; @@ -282,7 +284,9 @@ private: bool finishChange(int validateFromState = -1, bool update = false, bool edited = true); +#ifndef QT_NO_VALIDATOR QPointer<QValidator> m_validator; +#endif QPointer<QCompleter> m_completer; #ifndef QT_NO_COMPLETER bool advanceToEnabledItem(int dir); @@ -623,6 +627,7 @@ inline int QLineControl::maxLength() const return m_maxLength; } +#ifndef QT_NO_VALIDATOR inline const QValidator *QLineControl::validator() const { return m_validator; @@ -632,6 +637,7 @@ inline void QLineControl::setValidator(const QValidator *v) { m_validator = const_cast<QValidator*>(v); } +#endif #ifndef QT_NO_COMPLETER inline QCompleter *QLineControl::completer() const |