projects
/
mdictionary
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'qml' of ssh://drop.maemo.org/git/mdictionary into qml
[mdictionary]
/
src
/
mdictionary
/
gui
/
HistoryListDialog.cpp
diff --git
a/src/mdictionary/gui/HistoryListDialog.cpp
b/src/mdictionary/gui/HistoryListDialog.cpp
index
a9d4765
..
0074181
100644
(file)
--- a/
src/mdictionary/gui/HistoryListDialog.cpp
+++ b/
src/mdictionary/gui/HistoryListDialog.cpp
@@
-19,8
+19,11
@@
*******************************************************************************/
*******************************************************************************/
-//! \file HistoryListDialog.cpp
-//! \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+/*! \file HistoryListDialog.cpp
+ \brief Implements history list dialog
+
+ \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+*/
#include "HistoryListDialog.h"
#include "HistoryListDialog.h"
@@
-53,7
+56,7
@@
HistoryListDialog::HistoryListDialog(QStringList words, QWidget *parent):
setMinimumHeight(300);
setMinimumHeight(300);
- connect(historyListWidget, SIGNAL(clicked(QModelIndex)),
+ connect(historyListWidget, SIGNAL(activated(QModelIndex)),
this, SLOT(itemClicked(QModelIndex)));
}
this, SLOT(itemClicked(QModelIndex)));
}
@@
-72,3
+75,8
@@
QString HistoryListDialog::selectedWord() {
int HistoryListDialog::selectedRow() {
return _selectedRow;
}
int HistoryListDialog::selectedRow() {
return _selectedRow;
}
+
+int HistoryListDialog::exec() {
+ historyListWidget->setFocus();
+ QDialog::exec();
+}