summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-12-02 11:42:38 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-12-03 08:28:56 (GMT)
commitae2c3a96519ede274bd3a67566f007b1cba24ff8 (patch)
tree1a3f2c8f0c2fe0c4be5112544fef5332b155eb2d /src/gui/widgets
parent01279a67d5d27089b645a4b6226e32b415709722 (diff)
downloadQt-ae2c3a96519ede274bd3a67566f007b1cba24ff8.zip
Qt-ae2c3a96519ede274bd3a67566f007b1cba24ff8.tar.gz
Qt-ae2c3a96519ede274bd3a67566f007b1cba24ff8.tar.bz2
QCompleter wouldn't emit highlighted() and activated() signals
Completion was checked before sending the textEdited() signal from QLineEdit. The behaviour has been reverted as in 4.5. Reviewed-by: aalpert Task-number: QTBUG-6386
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qlineedit_p.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/qlineedit_p.cpp b/src/gui/widgets/qlineedit_p.cpp
index d03c003..4437fef 100644
--- a/src/gui/widgets/qlineedit_p.cpp
+++ b/src/gui/widgets/qlineedit_p.cpp
@@ -103,12 +103,12 @@ void QLineEditPrivate::_q_handleWindowActivate()
void QLineEditPrivate::_q_textEdited(const QString &text)
{
Q_Q(QLineEdit);
+ emit q->textEdited(text);
#ifndef QT_NO_COMPLETER
- if (control->completer() &&
- control->completer()->completionMode() != QCompleter::InlineCompletion)
+ if (control->completer()
+ && control->completer()->completionMode() != QCompleter::InlineCompletion)
control->complete(-1); // update the popup on cut/paste/del
#endif
- emit q->textEdited(text);
}
void QLineEditPrivate::_q_cursorPositionChanged(int from, int to)