X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fplugins%2Fgoogle%2FGooglePlugin.cpp;h=733a51f34a7dbefe62bd1e1f1817b57e241b557d;hb=27d5e8b54ea6ba6d95f7fc056eece35d141dab83;hp=be60c32a3b7bc0ce98b45c77a4d3035af8021c2a;hpb=87ff3664f4be5564a986ae484d2cea99a08bc2b5;p=mdictionary diff --git a/src/plugins/google/GooglePlugin.cpp b/src/plugins/google/GooglePlugin.cpp index be60c32..733a51f 100644 --- a/src/plugins/google/GooglePlugin.cpp +++ b/src/plugins/google/GooglePlugin.cpp @@ -41,7 +41,8 @@ GooglePlugin::GooglePlugin(QObject *parent): CommonDictInterface(parent), _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(); @@ -150,6 +151,10 @@ QIcon* GooglePlugin::icon() { return &_icon; } +QString GooglePlugin::iconPath(){ + return _iconPath; +} + CommonDictInterface* GooglePlugin::getNew(const Settings* settings) const { GooglePlugin *plugin = new GooglePlugin(); @@ -213,6 +218,7 @@ QList GooglePlugin::searchWordList(QString word, int ) { } QString text = QString::fromUtf8(http->readAll()); +// qDebug()<<"google test"<" + "" + text + "";