diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-12 18:18:10 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-12 18:18:10 +0900 |
| commit | a1d5d51fe58cfdc6bd7e35153fa334c2fdde3354 (patch) | |
| tree | d8c85b6b07060dbb834cfe78f46209a64f3fa2e8 /lib/kofficecore/KoTemplates.cpp | |
| parent | cf85b9c285a2b9baa87c9d0cb9d683b48e82a475 (diff) | |
| download | koffice-a1d5d51fe58cfdc6bd7e35153fa334c2fdde3354.tar.gz koffice-a1d5d51fe58cfdc6bd7e35153fa334c2fdde3354.zip | |
Use TDESimpleConfig
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/kofficecore/KoTemplates.cpp')
| -rw-r--r-- | lib/kofficecore/KoTemplates.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kofficecore/KoTemplates.cpp b/lib/kofficecore/KoTemplates.cpp index 072c04a0b..313d3af4b 100644 --- a/lib/kofficecore/KoTemplates.cpp +++ b/lib/kofficecore/KoTemplates.cpp @@ -24,7 +24,7 @@ #include <tqprinter.h> #include <kdesktopfile.h> -#include <ksimpleconfig.h> +#include <tdesimpleconfig.h> #include <kdebug.h> #include <tdeversion.h> #include <kinstance.h> @@ -226,7 +226,7 @@ void KoTemplateTree::readGroups() { TQString defaultTab; int sortingWeight = 1000; if(templateDir.exists(".directory")) { - KSimpleConfig config(templateDir.absPath()+"/.directory", true); + TDESimpleConfig config(templateDir.absPath()+"/.directory", true); config.setDesktopGroup(); name=config.readEntry("Name"); defaultTab=config.readEntry("X-TDE-DefaultTab"); @@ -271,7 +271,7 @@ void KoTemplateTree::readTemplates() { // If a desktop file, then read the name from it. // Otherwise (or if no name in it?) use file name if (KDesktopFile::isDesktopFile(filePath)) { - KSimpleConfig config(filePath, true); + TDESimpleConfig config(filePath, true); config.setDesktopGroup(); if (config.readEntry("Type")=="Link") { text=config.readEntry("Name"); @@ -356,7 +356,7 @@ void KoTemplateTree::writeTemplate(KoTemplate *t, KoTemplateGroup *group, fileName = path + fill + name + ".desktop"; } - KSimpleConfig config( fileName ); + TDESimpleConfig config( fileName ); config.setDesktopGroup(); config.writeEntry("Type", "Link"); config.writePathEntry("URL", t->file()); |
