summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2009-06-12 14:56:04 +0200
committerJason McDonald <jason.mcdonald@nokia.com>2009-06-16 20:41:06 +1000
commit1a16b0a3413de44ac35c5be1ef01214d43cc270e (patch)
tree783c536ceda0c41a213960809847d03a17052eaa
parentee3d68021dcca83f5dfbfebd74a84a531c226b8a (diff)
Fixed problems with the event handling in QCompleter on Mac.
On Mac, a new completer popup must initially have its show() method called rather than its hide() method. Otherwise the event handling done by the completer results in a bad state. On other platforms it doesn't matter. Reviewed-by: Richard Moe Gustavsen Task-number: 255374 (cherry picked from commit 7bf4512659113f8cc78e72f1c84158ce4f70a526)
-rw-r--r--src/gui/util/qcompleter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/util/qcompleter.cpp b/src/gui/util/qcompleter.cpp
index caeee8f2b5..b221e63cf0 100644
--- a/src/gui/util/qcompleter.cpp
+++ b/src/gui/util/qcompleter.cpp
@@ -1077,7 +1077,7 @@ void QCompleter::setPopup(QAbstractItemView *popup)
delete d->popup;
if (popup->model() != d->proxy)
popup->setModel(d->proxy);
- popup->hide();
+ popup->show();
popup->setParent(0, Qt::Popup);
Qt::FocusPolicy origPolicy = Qt::NoFocus;