From 7bf4512659113f8cc78e72f1c84158ce4f70a526 Mon Sep 17 00:00:00 2001 From: jasplin Date: Fri, 12 Jun 2009 14:56:04 +0200 Subject: 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 --- src/gui/util/qcompleter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12