From 3528101647e7320d07623e659138005d7d603980 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Wed, 8 Jul 2009 15:54:33 +1000 Subject: Fixed one of the QT3_SUPPORT constructors. It was accidentally left commented out instead of working with QLineControl. --- src/gui/widgets/qlineedit.cpp | 11 +++-------- 1 file 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 -- cgit v0.12