From: Jakub Jaszczynski Date: Fri, 3 Sep 2010 08:09:05 +0000 (+0200) Subject: xdxf wrong file format X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=13b5b4a9d4a12b9b44253a6346c1a53b19212a58;p=mdictionary xdxf wrong file format --- diff --git a/src/mdictionary/backbone/ConfigGenerator.cpp b/src/mdictionary/backbone/ConfigGenerator.cpp index 049d757..4a5f611 100644 --- a/src/mdictionary/backbone/ConfigGenerator.cpp +++ b/src/mdictionary/backbone/ConfigGenerator.cpp @@ -26,6 +26,7 @@ */ #include "ConfigGenerator.h" +#include bool ConfigGenerator::generateCss(QString file) { return generateFile(":/xsl/style.css", file); diff --git a/src/mdictionary/gui/NotifyManager.cpp b/src/mdictionary/gui/NotifyManager.cpp index 4bec722..c054f8d 100644 --- a/src/mdictionary/gui/NotifyManager.cpp +++ b/src/mdictionary/gui/NotifyManager.cpp @@ -60,7 +60,6 @@ void NotifyManager::screenChanged() { } void NotifyManager::showNotification(Notify::NotifyType type, QString text) { - if(activeNotifies.contains(text)) { return; } diff --git a/src/plugins/google/TranslationGoogle.cpp b/src/plugins/google/TranslationGoogle.cpp index fddaa2c..a0f465f 100644 --- a/src/plugins/google/TranslationGoogle.cpp +++ b/src/plugins/google/TranslationGoogle.cpp @@ -40,7 +40,7 @@ TranslationGoogle::TranslationGoogle(QString _key,QString _trans, } TranslationGoogle::~TranslationGoogle(){ - //qDebug()<<"\n\n delete translation:: Google\n\n"; + ; } diff --git a/src/plugins/xdxf/TranslationXdxf.cpp b/src/plugins/xdxf/TranslationXdxf.cpp index 0bd9718..7bb8d8d 100644 --- a/src/plugins/xdxf/TranslationXdxf.cpp +++ b/src/plugins/xdxf/TranslationXdxf.cpp @@ -28,7 +28,6 @@ TranslationXdxf::TranslationXdxf():_key(""),_dictionaryInfo("") { xdxfPlugin=0; -// qDebug()<<"\n\n create translaton Xdxf\n\n"; } TranslationXdxf::TranslationXdxf(QString _key, QString _dictionaryInfo, @@ -37,12 +36,10 @@ TranslationXdxf::TranslationXdxf(QString _key, QString _dictionaryInfo, if(xdxfPlugin) _dictHash = xdxfPlugin->hash(); _bookmark=0; - -// qDebug()<<"create translaton Xdxf"; } TranslationXdxf::~TranslationXdxf() { -// qDebug()<<"delete translation:: Xdxf"; + ; } QString TranslationXdxf::key() const { diff --git a/src/plugins/xdxf/xdxfplugin.cpp b/src/plugins/xdxf/xdxfplugin.cpp index bc678d0..533ed10 100644 --- a/src/plugins/xdxf/xdxfplugin.cpp +++ b/src/plugins/xdxf/xdxfplugin.cpp @@ -310,8 +310,9 @@ DictDialog* XdxfPlugin::dictDialog() { CommonDictInterface* XdxfPlugin::getNew(const Settings *settings) const { XdxfPlugin *plugin = new XdxfPlugin(); - if(settings && plugin->setSettings(settings)) + if(settings && plugin->setSettings(settings)) { return plugin; + } else { delete plugin; return 0; @@ -505,9 +506,9 @@ bool XdxfPlugin::makeCache(QString) { db_name = _settings->value("type") + cachePathN; db = QSqlDatabase::addDatabase("QSQLITE",db_name); - qDebug()<value("path"))