src/gui/widgets/qlinecontrol_p.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
child 7 f7bc934e204c
child 18 2f34d5167611
--- a/src/gui/widgets/qlinecontrol_p.h	Tue Jan 26 12:42:25 2010 +0200
+++ b/src/gui/widgets/qlinecontrol_p.h	Tue Feb 02 00:43:10 2010 +0200
@@ -174,8 +174,10 @@
     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 @@
 
     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 @@
     return m_maxLength;
 }
 
+#ifndef QT_NO_VALIDATOR
 inline const QValidator *QLineControl::validator() const
 {
     return m_validator;
@@ -632,6 +637,7 @@
 {
     m_validator = const_cast<QValidator*>(v);
 }
+#endif
 
 #ifndef QT_NO_COMPLETER
 inline QCompleter *QLineControl::completer() const