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()) {
_settings->setValue("type","stardict");
- _icon = QIcon("/usr/share/mdictionary/xdxf.png");
+ _icon = QIcon("/usr/share/mdictionary/stardict.png");
_wordsCount = -1;
stopped = false;
}
}
+ _name = settings()->value("bookname");
+
return true;
}
QString result("");
if(!starDictPlugin)
return result;
+
qDebug() << "asdf";
for(int i = 0; i < offsets.size(); i++) {
- result=result + "<dict> <info path=\"/usr/share/mdictionary/xdxf.png\" ";
+ result=result + "<dict> <info path=\"/usr/share/mdictionary/stardict.png\" ";
if(isBookmark())
result+= " bookmark=\"true\" > \n";
else
plugin-icon.path = $$DATA_DIR
- plugin-icon.files += xdxf.png
+ plugin-icon.files += stardict.png
}
check.commands = echo 'No check here'