diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-03 15:16:21 +0200 |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-04 12:55:59 +0200 |
commit | 69fb25cebb9e74b018026d3ab9aa75fcc959cfc5 (patch) | |
tree | d7bc11563cdfe952a932e60fd190ed36328b6b37 /src/gui/widgets/qdatetimeedit_p.h | |
parent | 7122c7ceb38a803afe17956f3d7fde897f298cac (diff) |
Fix ./tst_qdatetimeedit::task118867
Before the QLineEdit change, the QLineEdit::displayText used to return the
currently entered text when we call validate() on the validator.
Now, the displayText is set _after_ the validation.
Hence, the QDateTimeEdit::validate did not had access to the real text.
Reviewed-by: Thierry
Diffstat (limited to 'src/gui/widgets/qdatetimeedit_p.h')
-rw-r--r-- | src/gui/widgets/qdatetimeedit_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/qdatetimeedit_p.h b/src/gui/widgets/qdatetimeedit_p.h index 7e1c24d5c8..689b508563 100644 --- a/src/gui/widgets/qdatetimeedit_p.h +++ b/src/gui/widgets/qdatetimeedit_p.h @@ -89,7 +89,7 @@ public: QDateTime validateAndInterpret(QString &input, int &, QValidator::State &state, bool fixup = false) const; void clearSection(int index); - virtual QString displayText() const { return edit->displayText(); } // this is from QDateTimeParser + virtual QString displayText() const { return edit->text(); } // this is from QDateTimeParser int absoluteIndex(QDateTimeEdit::Section s, int index) const; int absoluteIndex(const SectionNode &s) const; |