summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlineedit.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-07-08 05:54:33 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-07-08 05:54:33 (GMT)
commit3528101647e7320d07623e659138005d7d603980 (patch)
tree27a35b46fe163b16415250e8f128058262473014 /src/gui/widgets/qlineedit.cpp
parentfe6ca9332cf4516c84d9a1b8ca9ea2846458f98f (diff)
downloadQt-3528101647e7320d07623e659138005d7d603980.zip
Qt-3528101647e7320d07623e659138005d7d603980.tar.gz
Qt-3528101647e7320d07623e659138005d7d603980.tar.bz2
Fixed one of the QT3_SUPPORT constructors.
It was accidentally left commented out instead of working with QLineControl.
Diffstat (limited to 'src/gui/widgets/qlineedit.cpp')
-rw-r--r--src/gui/widgets/qlineedit.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/widgets/qlineedit.cpp b/src/gui/widgets/qlineedit.cpp
index 7fdda6c..8e7fdec 100644
--- a/src/gui/widgets/qlineedit.cpp
+++ b/src/gui/widgets/qlineedit.cpp
@@ -341,14 +341,9 @@ QLineEdit::QLineEdit(const QString& contents, const QString &inputMask, QWidget*
{
Q_D(QLineEdit);
setObjectName(QString::fromAscii(name));
- //d->control->parseInputMask(inputMask);
- //if (d->control->maskData) {
- // QString ms = d->control->maskString(0, contents);
- // d->init(ms + d->control->clearString(ms.length(), d->control->maxLength() - ms.length()));
- // d->control->moveCursor(d->control->nextMaskBlank(ms.length()));
- // } else {
- d->init(contents);
- // }
+ d->init(contents);
+ d->control->setInputMask(inputMask);
+ d->control->moveCursor(d->control->nextMaskBlank(contents.length()));
}
#endif