summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoTemplates.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-06-08 16:56:40 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-06-08 16:56:40 -0500
commit910a61f9423d69871c2ef9ca8a0d7ace32474f93 (patch)
tree794bd468068d2616d05878f58b0786b07ceff8d9 /lib/kofficecore/KoTemplates.cpp
parent420112343c04d209e40c6f03f492cdb6154f70fb (diff)
downloadkoffice-910a61f9423d69871c2ef9ca8a0d7ace32474f93.tar.gz
koffice-910a61f9423d69871c2ef9ca8a0d7ace32474f93.zip
Update XDG information in support of bug report 892.
Diffstat (limited to 'lib/kofficecore/KoTemplates.cpp')
-rw-r--r--lib/kofficecore/KoTemplates.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/kofficecore/KoTemplates.cpp b/lib/kofficecore/KoTemplates.cpp
index 343d4704..a86d799a 100644
--- a/lib/kofficecore/KoTemplates.cpp
+++ b/lib/kofficecore/KoTemplates.cpp
@@ -229,8 +229,8 @@ void KoTemplateTree::readGroups() {
KSimpleConfig config(templateDir.absPath()+"/.directory", true);
config.setDesktopGroup();
name=config.readEntry("Name");
- defaultTab=config.readEntry("X-KDE-DefaultTab");
- sortingWeight=config.readNumEntry("X-KDE-SortingWeight", 1000);
+ defaultTab=config.readEntry("X-TDE-DefaultTab");
+ sortingWeight=config.readNumEntry("X-TDE-SortingWeight", 1000);
//kdDebug() << "name: " << name <<endl;
}
KoTemplateGroup *g=new KoTemplateGroup(name, *it+*tdirIt+TQChar('/'), sortingWeight);
@@ -283,9 +283,9 @@ void KoTemplateTree::readTemplates() {
TQFile::exists(*it+icon)) // allow icons from icontheme
icon=*it+icon;
//kdDebug() << "icon2: " << icon << endl;
- hidden=config.readBoolEntry("X-KDE-Hidden", false);
- defaultTemplate = config.readBoolEntry("X-KDE-DefaultTemplate", false);
- measureSystem=config.readEntry("X-KDE-MeasureSystem").lower();
+ hidden=config.readBoolEntry("X-TDE-Hidden", false);
+ defaultTemplate = config.readBoolEntry("X-TDE-DefaultTemplate", false);
+ measureSystem=config.readEntry("X-TDE-MeasureSystem").lower();
// Don't add a template that is for the wrong measure system
if(measureSystem == dontShow)
@@ -362,7 +362,7 @@ void KoTemplateTree::writeTemplate(KoTemplate *t, KoTemplateGroup *group,
config.writePathEntry("URL", t->file());
config.writeEntry("Name", t->name());
config.writeEntry("Icon", t->picture());
- config.writeEntry("X-KDE-Hidden", t->isHidden());
+ config.writeEntry("X-TDE-Hidden", t->isHidden());
}
namespace KoTemplates {