Locator tool window shortcut and menu item doesn't work.

After changes in Qt that expose a bug in Qt Creator. We actually
tried to set the focus on a widget that doesn't accept focus. Set a
focus proxy instead.

Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
This commit is contained in:
con
2009-06-02 19:13:42 +02:00
parent bd7a5fb9da
commit 7b1655049a

View File

@@ -258,6 +258,7 @@ QuickOpenToolWindow::QuickOpenToolWindow(QuickOpenPlugin *qop) :
// Explicitly hide the completion list popup.
m_completionList->hide();
setFocusProxy(m_fileLineEdit);
setWindowTitle(tr("Locate..."));
resize(200, 90);
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);