summaryrefslogtreecommitdiffstats
path: root/src/backgroundmanager.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:18:28 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:18:28 -0600
commit934db26c3f8efe148a5680c22f965ee10f818a61 (patch)
tree4a47cbb3ef398d11fa9283b5afdcd0a8d84fad7c /src/backgroundmanager.cpp
parenta1fb52e00e362130a46b34570e53f2c1f322f373 (diff)
downloadbasket-934db26c3f8efe148a5680c22f965ee10f818a61.tar.gz
basket-934db26c3f8efe148a5680c22f965ee10f818a61.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'src/backgroundmanager.cpp')
-rw-r--r--src/backgroundmanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backgroundmanager.cpp b/src/backgroundmanager.cpp
index 73e56b2..a3b56e4 100644
--- a/src/backgroundmanager.cpp
+++ b/src/backgroundmanager.cpp
@@ -68,7 +68,7 @@ OpaqueBackgroundEntry::~OpaqueBackgroundEntry()
BackgroundManager::BackgroundManager()
{
/// std::cout << "BackgroundManager: Found the following background images in ";
- TQStringList directories = KGlobal::dirs()->resourceDirs("data"); // eg. { "/home/seb/.trinity/share/apps/", "/usr/share/apps/" }
+ TQStringList directories = TDEGlobal::dirs()->resourceDirs("data"); // eg. { "/home/seb/.trinity/share/apps/", "/usr/share/apps/" }
// For each folder:
for (TQStringList::Iterator it = directories.begin(); it != directories.end(); ++it) {
// For each file in those directories:
@@ -266,7 +266,7 @@ TQPixmap* BackgroundManager::preview(const TQString &image)
return entry->preview;
// Then, try to load the preview from file:
- TQString previewPath = KGlobal::dirs()->findResource("data", "basket/backgrounds/previews/" + entry->name);
+ TQString previewPath = TDEGlobal::dirs()->findResource("data", "basket/backgrounds/previews/" + entry->name);
TQPixmap *previewPixmap = new TQPixmap(previewPath);
// Success:
if (!previewPixmap->isNull()) {
@@ -319,7 +319,7 @@ TQPixmap* BackgroundManager::preview(const TQString &image)
painter.end();
// Saving it to file for later:
- TQString folder = KGlobal::dirs()->saveLocation("data", "basket/backgrounds/previews/");
+ TQString folder = TDEGlobal::dirs()->saveLocation("data", "basket/backgrounds/previews/");
result->save(folder + entry->name, "PNG");
// Ouf! That's done:
@@ -343,7 +343,7 @@ TQString BackgroundManager::previewPathForImageName(const TQString &image)
if (entry == 0)
return "";
else {
- TQString previewPath = KGlobal::dirs()->findResource("data", "basket/backgrounds/previews/" + entry->name);
+ TQString previewPath = TDEGlobal::dirs()->findResource("data", "basket/backgrounds/previews/" + entry->name);
TQDir dir;
if (!dir.exists(previewPath))
return "";