Use TDESimpleConfig

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/39/head
Michele Calgaro 1 month ago
parent b6fa5c8b16
commit 09ec9a0060
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -21,7 +21,7 @@
#include <kurl.h>
#include <tdeglobal.h>
#include <tdestandarddirs.h>
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
#include <tqpainter.h>
#include <tqdir.h>
#include <tqimage.h>
@ -120,7 +120,7 @@ bool BackgroundManager::subscribe(const TQString &image)
// Try to load the pixmap:
entry->pixmap = new TQPixmap(entry->location);
// Try to figure out if it's a tiled background image or not (default to NO):
KSimpleConfig config(entry->location + ".config", /*readOnly=*/true);
TDESimpleConfig config(entry->location + ".config", /*readOnly=*/true);
config.setGroup("BasKet Background Image Configuration");
entry->tiled = config.readBoolEntry("tiled", false);
}
@ -287,7 +287,7 @@ TQPixmap* BackgroundManager::preview(const TQString &image)
// Because, as we are loading the pixmap we ALSO need to know if it's a tile or not, in case that image will soon be used (and not destroyed by the garbager):
entry->pixmap = new TQPixmap(entry->location);
// Try to figure out if it's a tiled background image or not (default to NO):
KSimpleConfig config(entry->location + ".config", /*readOnly=*/true);
TDESimpleConfig config(entry->location + ".config", /*readOnly=*/true);
config.setGroup("BasKet Background Image Configuration");
entry->tiled = config.readBoolEntry("tiled", false);
}

Loading…
Cancel
Save