X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmdictionary%2Fgui%2FHistoryListDialog.cpp;h=00741812bdf4e68ebef6a11dc1ac263b62af2f2e;hb=5ff31a8e7a9f8d8a42d29a00882adcad16eedbdc;hp=a9d4765a50336e759b6970bdd9164cf7bb822ed8;hpb=6552e14c830b3de28e1688b8a6b94c09317beac1;p=mdictionary diff --git a/src/mdictionary/gui/HistoryListDialog.cpp b/src/mdictionary/gui/HistoryListDialog.cpp index a9d4765..0074181 100644 --- a/src/mdictionary/gui/HistoryListDialog.cpp +++ b/src/mdictionary/gui/HistoryListDialog.cpp @@ -19,8 +19,11 @@ *******************************************************************************/ -//! \file HistoryListDialog.cpp -//! \author Mateusz Półrola +/*! \file HistoryListDialog.cpp + \brief Implements history list dialog + + \author Mateusz Półrola +*/ #include "HistoryListDialog.h" @@ -53,7 +56,7 @@ HistoryListDialog::HistoryListDialog(QStringList words, QWidget *parent): setMinimumHeight(300); - connect(historyListWidget, SIGNAL(clicked(QModelIndex)), + connect(historyListWidget, SIGNAL(activated(QModelIndex)), this, SLOT(itemClicked(QModelIndex))); } @@ -72,3 +75,8 @@ QString HistoryListDialog::selectedWord() { int HistoryListDialog::selectedRow() { return _selectedRow; } + +int HistoryListDialog::exec() { + historyListWidget->setFocus(); + QDialog::exec(); +}