From 7b1655049ac9a77959bb849cd3d26eb18e8e9163 Mon Sep 17 00:00:00 2001
From: con <qtc-committer@nokia.com>
Date: Tue, 2 Jun 2009 19:13:42 +0200
Subject: [PATCH] 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>
---
 src/plugins/quickopen/quickopentoolwindow.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/quickopen/quickopentoolwindow.cpp b/src/plugins/quickopen/quickopentoolwindow.cpp
index 462e1d94df3..139559bee34 100644
--- a/src/plugins/quickopen/quickopentoolwindow.cpp
+++ b/src/plugins/quickopen/quickopentoolwindow.cpp
@@ -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);
-- 
GitLab