Remove unused kglobal.h includes, thx to tsdgeos' magic bash line

Replace a few more KGlobal::locale with KLocale::global
This commit is contained in:
David Faure 2012-09-04 20:52:25 +02:00
parent 3d0d287103
commit 6c932bca0f
2 changed files with 2 additions and 3 deletions

View File

@ -705,7 +705,7 @@ void DataEnginePrivate::setupScriptSupport()
const QString translationsPath = package->filePath("translations");
if (!translationsPath.isEmpty()) {
KGlobal::dirs()->addResourceDir("locale", translationsPath);
KGlobal::locale()->insertCatalog(dataEngineDescription.pluginName());
KLocale::global()->insertCatalog(dataEngineDescription.pluginName());
}
}

View File

@ -23,7 +23,6 @@
#include <QTextStream>
#include <kdebug.h>
#include <kglobal.h>
#include <klocale.h>
#include <kservicetypetrader.h>
@ -214,7 +213,7 @@ void DataEngineManager::timerEvent(QTimerEvent *)
QTextStream out(&f);
QHashIterator<QString, DataEngine*> it(d->engines);
out << "================================== " << KGlobal::locale()->formatDateTime(QDateTime::currentDateTime()) << endl;
out << "================================== " << KLocale::global()->formatDateTime(QDateTime::currentDateTime()) << endl;
while (it.hasNext()) {
it.next();
DataEngine *engine = it.value();