src/gui/widgets/qlinecontrol_p.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   172     void setEchoMode(uint mode);
   172     void setEchoMode(uint mode);
   173 
   173 
   174     void setMaxLength(int maxLength);
   174     void setMaxLength(int maxLength);
   175     int maxLength() const;
   175     int maxLength() const;
   176 
   176 
       
   177 #ifndef QT_NO_VALIDATOR
   177     const QValidator *validator() const;
   178     const QValidator *validator() const;
   178     void setValidator(const QValidator *);
   179     void setValidator(const QValidator *);
       
   180 #endif
   179 
   181 
   180 #ifndef QT_NO_COMPLETER
   182 #ifndef QT_NO_COMPLETER
   181     QCompleter *completer() const;
   183     QCompleter *completer() const;
   182     void setCompleter(const QCompleter*);
   184     void setCompleter(const QCompleter*);
   183     void complete(int key);
   185     void complete(int key);
   280 
   282 
   281     void emitCursorPositionChanged();
   283     void emitCursorPositionChanged();
   282 
   284 
   283     bool finishChange(int validateFromState = -1, bool update = false, bool edited = true);
   285     bool finishChange(int validateFromState = -1, bool update = false, bool edited = true);
   284 
   286 
       
   287 #ifndef QT_NO_VALIDATOR
   285     QPointer<QValidator> m_validator;
   288     QPointer<QValidator> m_validator;
       
   289 #endif
   286     QPointer<QCompleter> m_completer;
   290     QPointer<QCompleter> m_completer;
   287 #ifndef QT_NO_COMPLETER
   291 #ifndef QT_NO_COMPLETER
   288     bool advanceToEnabledItem(int dir);
   292     bool advanceToEnabledItem(int dir);
   289 #endif
   293 #endif
   290 
   294 
   621 inline int QLineControl::maxLength() const
   625 inline int QLineControl::maxLength() const
   622 {
   626 {
   623     return m_maxLength;
   627     return m_maxLength;
   624 }
   628 }
   625 
   629 
       
   630 #ifndef QT_NO_VALIDATOR
   626 inline const QValidator *QLineControl::validator() const
   631 inline const QValidator *QLineControl::validator() const
   627 {
   632 {
   628     return m_validator;
   633     return m_validator;
   629 }
   634 }
   630 
   635 
   631 inline void QLineControl::setValidator(const QValidator *v)
   636 inline void QLineControl::setValidator(const QValidator *v)
   632 {
   637 {
   633     m_validator = const_cast<QValidator*>(v);
   638     m_validator = const_cast<QValidator*>(v);
   634 }
   639 }
       
   640 #endif
   635 
   641 
   636 #ifndef QT_NO_COMPLETER
   642 #ifndef QT_NO_COMPLETER
   637 inline QCompleter *QLineControl::completer() const
   643 inline QCompleter *QLineControl::completer() const
   638 {
   644 {
   639     return m_completer;
   645     return m_completer;