summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2009-06-12 12:56:04 (GMT)
committerjasplin <qt-info@nokia.com>2009-06-12 13:06:54 (GMT)
commit7bf4512659113f8cc78e72f1c84158ce4f70a526 (patch)
tree69fa6dd462f8b3675db6a84709e499c17a8a7050
parent1be9e07987388195b8c4ff7d0101cb3e32ee6acc (diff)
downloadQt-7bf4512659113f8cc78e72f1c84158ce4f70a526.zip
Qt-7bf4512659113f8cc78e72f1c84158ce4f70a526.tar.gz
Qt-7bf4512659113f8cc78e72f1c84158ce4f70a526.tar.bz2
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
-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 faa4e7b..da3edb0 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;