From a1d5d51fe58cfdc6bd7e35153fa334c2fdde3354 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 12 Jul 2025 18:18:10 +0900 Subject: Use TDESimpleConfig Signed-off-by: Michele Calgaro --- lib/kofficecore/KoTemplates.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/kofficecore/KoTemplates.cpp') 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 #include -#include +#include #include #include #include @@ -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()); -- cgit v1.2.3