X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmdictionary%2Fgui%2FDictManagerWidget.cpp;h=8519c936d56a069ddb2faad79458f8247fea740f;hb=5fc81a4ae588b2616381820b99a09b5f0669bc01;hp=4353301f90f927d4ab1b4242b4713ccdde7788ab;hpb=370fe5ec9c3e2f22386d1fec69d218e5cef7a7ee;p=mdictionary diff --git a/src/mdictionary/gui/DictManagerWidget.cpp b/src/mdictionary/gui/DictManagerWidget.cpp index 4353301..8519c93 100644 --- a/src/mdictionary/gui/DictManagerWidget.cpp +++ b/src/mdictionary/gui/DictManagerWidget.cpp @@ -19,9 +19,11 @@ *******************************************************************************/ -//! \file DictManagerWidget.cpp -//! \brief Dictionaries management widget -//! \author Mateusz Półrola +/*! \file DictManagerWidget.cpp + \brief Implements dictionaries management widget + + \author Mateusz Półrola +*/ #include "DictManagerWidget.h" #include "DictTypeSelectDialog.h" @@ -125,8 +127,15 @@ void DictManagerWidget::refreshDictsList() { while(i.hasNext()) { i.next(); QListWidgetItem* item = new QListWidgetItem(); - QString name = i.key()->langFrom() + " - " + i.key()->langTo() + " (" + - i.key()->type() + " " + i.key()->name() + ")"; + QString name; + if (i.key()->type() == "stardict") { + name = i.key()->name() + " (" + i.key()->type() + ")"; + } + else { + name = i.key()->langFrom() + " - " + i.key()->langTo() + + " (" + i.key()->type() + " " + + i.key()->name() + ")"; + } item->setText(name); item->setFlags(item->flags() | Qt::ItemIsUserCheckable); if(i.value()) {