summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-08-06 03:24:51 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-08-06 03:24:51 (GMT)
commit31fa1d0f6144e7e92748b33f8633eeb2f52483a1 (patch)
tree2532026779f0aa77807b6ee38df59a3e0713d830 /src/gui
parent64031a8a69d5f71d73208447e0b1f7108aabd2fc (diff)
downloadQt-31fa1d0f6144e7e92748b33f8633eeb2f52483a1.zip
Qt-31fa1d0f6144e7e92748b33f8633eeb2f52483a1.tar.gz
Qt-31fa1d0f6144e7e92748b33f8633eeb2f52483a1.tar.bz2
Make QLineEdit cursor blink again
Somehow forgot to hook up the blinking signal (in the new QLineControl) to QLineEdit. Reviewed-by: Trust Me
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/qlineedit_p.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qlineedit_p.cpp b/src/gui/widgets/qlineedit_p.cpp
index aed454e..d907233 100644
--- a/src/gui/widgets/qlineedit_p.cpp
+++ b/src/gui/widgets/qlineedit_p.cpp
@@ -161,6 +161,9 @@ void QLineEditPrivate::init(const QString& txt)
QObject::connect(control, SIGNAL(displayTextChanged(const QString &)),
q, SLOT(update()));
+
+ QObject::connect(control, SIGNAL(updateNeeded(const QRect &)),
+ q, SLOT(update()));
control->setPasswordCharacter(q->style()->styleHint(QStyle::SH_LineEdit_PasswordCharacter));
#ifndef QT_NO_CURSOR
q->setCursor(Qt::IBeamCursor);