summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2009-06-12 14:56:04 +0200
committerjasplin <qt-info@nokia.com>2009-06-12 15:06:54 +0200
commit7bf4512659113f8cc78e72f1c84158ce4f70a526 (patch)
tree69fa6dd462f8b3675db6a84709e499c17a8a7050 /src/gui
parent1be9e07987388195b8c4ff7d0101cb3e32ee6acc (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
Diffstat (limited to 'src/gui')
-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 faa4e7b685..da3edb0481 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;