From 2fee2412c2d69ffac23d743caf8b8b5f93747814 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Mon, 23 Jul 2012 15:33:03 +0200 Subject: [PATCH] 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 --- src/widgets/widgets/qlineedit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.7.4