summaryrefslogtreecommitdiffstats
path: root/src/backgroundmanager.cpp
diff options
context:
space:
mode:
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 "";