summaryrefslogtreecommitdiffstats
path: root/src/fetch/fetchmanager.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-24 13:27:15 -0600
committerTimothy Pearson <[email protected]>2013-01-24 13:27:15 -0600
commit5b6d393e0a2c88cce8f433607c091ae883ef54f9 (patch)
tree3c54f3e4a9d6fc2ac30a58e96c19ea878fa08459 /src/fetch/fetchmanager.cpp
parenteb52f16dcfba98b043537ea3da6a1b08b8d51b19 (diff)
downloadtellico-5b6d393e0a2c88cce8f433607c091ae883ef54f9.tar.gz
tellico-5b6d393e0a2c88cce8f433607c091ae883ef54f9.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'src/fetch/fetchmanager.cpp')
-rw-r--r--src/fetch/fetchmanager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fetch/fetchmanager.cpp b/src/fetch/fetchmanager.cpp
index 4a64052..7888987 100644
--- a/src/fetch/fetchmanager.cpp
+++ b/src/fetch/fetchmanager.cpp
@@ -60,7 +60,7 @@
#include <tqdir.h>
#define LOAD_ICON(name, group, size) \
- KGlobal::iconLoader()->loadIcon(name, static_cast<KIcon::Group>(group), size_)
+ TDEGlobal::iconLoader()->loadIcon(name, static_cast<KIcon::Group>(group), size_)
using Tellico::Fetch::Manager;
Manager* Manager::s_self = 0;
@@ -93,7 +93,7 @@ void Manager::loadFetchers() {
m_fetchers.clear();
m_configMap.clear();
- KConfig* config = KGlobal::config();
+ KConfig* config = TDEGlobal::config();
if(config->hasGroup(TQString::fromLatin1("Data Sources"))) {
KConfigGroup configGroup(config, TQString::fromLatin1("Data Sources"));
int nSources = configGroup.readNumEntry("Sources Count", 0);
@@ -359,7 +359,7 @@ Tellico::Fetch::FetcherVec Manager::defaultFetchers() {
vec.append(new GoogleScholarFetcher(this));
vec.append(new DiscogsFetcher(this));
// only add IBS if user includes italian
- if(KGlobal::locale()->languagesTwoAlpha().contains(TQString::fromLatin1("it"))) {
+ if(TDEGlobal::locale()->languagesTwoAlpha().contains(TQString::fromLatin1("it"))) {
vec.append(new IBSFetcher(this));
}
return vec;
@@ -371,12 +371,12 @@ Tellico::Fetch::FetcherVec Manager::createUpdateFetchers(int collType_) {
}
FetcherVec vec;
- KConfigGroup config(KGlobal::config(), "Data Sources");
+ KConfigGroup config(TDEGlobal::config(), "Data Sources");
int nSources = config.readNumEntry("Sources Count", 0);
for(int i = 0; i < nSources; ++i) {
TQString group = TQString::fromLatin1("Data Source %1").arg(i);
// needs the KConfig*
- Fetcher::Ptr f = createFetcher(KGlobal::config(), group);
+ Fetcher::Ptr f = createFetcher(TDEGlobal::config(), group);
if(f && f->canFetch(collType_) && f->canUpdate()) {
vec.append(f);
}
@@ -440,7 +440,7 @@ Tellico::Fetch::TypePairList Manager::typeList() {
list.append(TypePair(DiscogsFetcher::defaultName(), Discogs));
// now find all the scripts distributed with tellico
- TQStringList files = KGlobal::dirs()->findAllResources("appdata", TQString::fromLatin1("data-sources/*.spec"),
+ TQStringList files = TDEGlobal::dirs()->findAllResources("appdata", TQString::fromLatin1("data-sources/*.spec"),
false, true);
for(TQStringList::Iterator it = files.begin(); it != files.end(); ++it) {
KConfig spec(*it, false, false);