*******************************************************************************/
-//! \file DictManagerWidget.cpp
-//! \brief Dictionaries management widget
-//! \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+/*! \file DictManagerWidget.cpp
+ \brief Implements dictionaries management widget
+
+ \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+*/
#include "DictManagerWidget.h"
#include "DictTypeSelectDialog.h"
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()) {