diff options
author | Jerome Pasion <jerome.pasion@nokia.com> | 2010-09-14 12:51:47 (GMT) |
---|---|---|
committer | Jerome Pasion <jerome.pasion@nokia.com> | 2010-09-14 12:51:47 (GMT) |
commit | 3e7c69afd0c69b2fffccf4e8cb6f292366f3217f (patch) | |
tree | 72b53cb232ccf3897d08857d36abc3d8901e8a84 /src/gui/widgets | |
parent | 7eb53c4b8d9745f998694f3dbe88dab6791d0e81 (diff) | |
download | Qt-3e7c69afd0c69b2fffccf4e8cb6f292366f3217f.zip Qt-3e7c69afd0c69b2fffccf4e8cb6f292366f3217f.tar.gz Qt-3e7c69afd0c69b2fffccf4e8cb6f292366f3217f.tar.bz2 |
Added statement regarding validators and input masks on the same line edit.
Reviewed-by: David Boddie
Bug:QTBUG-11324
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qlineedit.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp index 981e934..a60b30d 100644 --- a/src/gui/widgets/qlineedit.cpp +++ b/src/gui/widgets/qlineedit.cpp @@ -139,7 +139,10 @@ void QLineEdit::initStyleOption(QStyleOptionFrame *option) const The length of the text can be constrained to maxLength(). The text can be arbitrarily constrained using a validator() or an - inputMask(), or both. + inputMask(), or both. When switching between a validator and an input mask + on the same line edit, it is best to clear the validator or input mask to + prevent undefined behavior. + A related class is QTextEdit which allows multi-line, rich text editing. |