summaryrefslogtreecommitdiffstats
path: root/noatun/library/pluginloader.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-24 13:47:46 -0600
committerTimothy Pearson <[email protected]>2013-01-24 13:47:46 -0600
commit27430f06c6cc2187c639f59f342f07f1fde91a8b (patch)
tree493c1095950b7f0a82690cedac1b749666be1b47 /noatun/library/pluginloader.cpp
parent794a886cbd6d6893d62026f3800b95051652fc5a (diff)
downloadtdemultimedia-27430f06c6cc2187c639f59f342f07f1fde91a8b.tar.gz
tdemultimedia-27430f06c6cc2187c639f59f342f07f1fde91a8b.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
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();