summaryrefslogtreecommitdiffstats
path: root/noatun/library/pluginloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/library/pluginloader.cpp')
-rw-r--r--noatun/library/pluginloader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noatun/library/pluginloader.cpp b/noatun/library/pluginloader.cpp
index 0897e76d..f715590a 100644
--- a/noatun/library/pluginloader.cpp
+++ b/noatun/library/pluginloader.cpp
@@ -52,7 +52,7 @@ LibraryLoader::~LibraryLoader()
TQValueList<NoatunLibraryInfo> LibraryLoader::available() const
{
TQValueList<NoatunLibraryInfo> items;
- TQStringList files=KGlobal::dirs()->findAllResources("appdata", "*.plugin", false, true);
+ TQStringList files=TDEGlobal::dirs()->findAllResources("appdata", "*.plugin", false, true);
for (TQStringList::Iterator i=files.begin(); i!=files.end(); ++i)
items.append(getInfo(*i));
@@ -69,7 +69,7 @@ TQPtrList<Plugin> LibraryLoader::plugins() const
bool LibraryLoader::loadAll()
{
- KConfig *config=KGlobal::config();
+ KConfig *config=TDEGlobal::config();
config->setGroup("");
TQStringList modules = config->readListEntry("Modules");
return loadAll(modules);
@@ -135,7 +135,7 @@ bool LibraryLoader::loadAll(const TQStringList &modules)
NoatunLibraryInfo LibraryLoader::getInfo(const TQString &spec) const
{
NoatunLibraryInfo info;
- TQString specPath = (spec[0]=='/') ? spec : KGlobal::dirs()->findResource("appdata", spec);
+ TQString specPath = (spec[0]=='/') ? spec : TDEGlobal::dirs()->findResource("appdata", spec);
if (!TQFile::exists(specPath))
return info;
KSimpleConfig file(specPath);
@@ -180,7 +180,7 @@ bool LibraryLoader::loadSO(const TQString &spec)
if (!listitem)
{
- TQString filename = KGlobal::dirs()->findResource("module", info.filename);
+ TQString filename = TDEGlobal::dirs()->findResource("module", info.filename);
KLibrary *lib = loader->library(TQFile::encodeName(filename));
if (!lib)
return false;
@@ -221,7 +221,7 @@ void LibraryLoader::add(const TQString &spec)
void LibraryLoader::setModules(const TQStringList &mods)
{
- KConfig *config=KGlobal::config();
+ KConfig *config=TDEGlobal::config();
config->setGroup(0);
config->writeEntry("Modules", mods);
config->sync();