_settings->setValue("type","google");
_settings->setValue("connection_accepted","true");
_dictDialog = new GoogleDictDialog(this,this);
- _icon = QIcon("/usr/share/mdictionary/google.png");
+ _iconPath = "/usr/share/mdictionary/google.png";
+ _icon = QIcon(_iconPath);
stopped = false;
initLanguages();
return &_icon;
}
+QString GooglePlugin::iconPath(){
+ return _iconPath;
+}
+
CommonDictInterface* GooglePlugin::getNew(const Settings* settings) const {
GooglePlugin *plugin = new GooglePlugin();
}
QString text = QString::fromUtf8(http->readAll());
-// qDebug()<<"google test"<<text;
text=jsonParse(text);
if(text!="") {
text="<key>" + word + "</key>" + "<t>" + text + "</t>";