diff options
| author | 2015-05-12 16:19:40 -0400 | |
|---|---|---|
| committer | 2015-05-12 16:19:40 -0400 | |
| commit | 9618f0ebbf4b88045247c01ce8c8f58203508ebf (patch) | |
| tree | 20c9894691353ee8bab4eec668e9b0b6c6426e0f /SQLiteStudio3/guiSQLiteStudio/completer | |
| parent | a308f430f694423064ebc86fd0506c8c6fdb3d93 (diff) | |
Imported Upstream version 3.0.6upstream/3.0.6
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/completer')
| -rw-r--r-- | SQLiteStudio3/guiSQLiteStudio/completer/completerwindow.cpp | 8 | ||||
| -rw-r--r-- | SQLiteStudio3/guiSQLiteStudio/completer/completerwindow.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/completer/completerwindow.cpp b/SQLiteStudio3/guiSQLiteStudio/completer/completerwindow.cpp index 544adca..87ad64c 100644 --- a/SQLiteStudio3/guiSQLiteStudio/completer/completerwindow.cpp +++ b/SQLiteStudio3/guiSQLiteStudio/completer/completerwindow.cpp @@ -227,3 +227,11 @@ void CompleterWindow::currentRowChanged(const QModelIndex& current, const QModel UNUSED(previous); ui->status->showMessage(getStatusMsg(current)); } + +void CompleterWindow::showEvent(QShowEvent*e) +{ + QDialog::showEvent(e); + + // A hack for Gnome3 to give this widget a focus. Harmless for others. + ui->list->activateWindow(); +} diff --git a/SQLiteStudio3/guiSQLiteStudio/completer/completerwindow.h b/SQLiteStudio3/guiSQLiteStudio/completer/completerwindow.h index 7c933c8..ec7256c 100644 --- a/SQLiteStudio3/guiSQLiteStudio/completer/completerwindow.h +++ b/SQLiteStudio3/guiSQLiteStudio/completer/completerwindow.h @@ -35,6 +35,7 @@ class GUI_API_EXPORT CompleterWindow : public QDialog protected: void changeEvent(QEvent *e); void keyPressEvent(QKeyEvent* e); + void showEvent(QShowEvent* e); private: void updateCurrent(); |
