From: Mitch Curtis Date: Mon, 23 Jul 2012 13:33:03 +0000 (+0200) Subject: Correct QLineEdit::inputMask documentation. X-Git-Tag: v5.0.0-beta1~655 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fee2412c2d69ffac23d743caf8b8b5f93747814;p=profile%2Fivi%2Fqtbase.git Correct QLineEdit::inputMask documentation. The documentation says: "Unset the mask and return to normal QLineEdit operation by passing an empty string ("") or just calling setInputMask() with no arguments." However, the parameter for setInputMask is a const QString&, so calling it with no arguments will result in a compile error. The documentation should not advise calling setInputMask() without arguments. Change-Id: Icd8e063dcd3d745bd4bf0c6851a38f63481957ae Task-number: QTBUG-24803 Reviewed-by: Jerome Pasion --- diff --git a/src/widgets/widgets/qlineedit.cpp b/src/widgets/widgets/qlineedit.cpp index 162a1e3..2421b62 100644 --- a/src/widgets/widgets/qlineedit.cpp +++ b/src/widgets/widgets/qlineedit.cpp @@ -1089,8 +1089,7 @@ QMargins QLineEdit::textMargins() const instead of, or in conjunction with masks; see setValidator(). Unset the mask and return to normal QLineEdit operation by passing - an empty string ("") or just calling setInputMask() with no - arguments. + an empty string (""). The table below shows the characters that can be used in an input mask. A space character, the default character for a blank, is needed for cases