From 31fa1d0f6144e7e92748b33f8633eeb2f52483a1 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Thu, 6 Aug 2009 13:24:51 +1000 Subject: Make QLineEdit cursor blink again Somehow forgot to hook up the blinking signal (in the new QLineControl) to QLineEdit. Reviewed-by: Trust Me --- src/gui/widgets/qlineedit_p.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v0.12