diff options
Diffstat (limited to 'src/kile/templates.cpp')
-rw-r--r-- | src/kile/templates.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kile/templates.cpp b/src/kile/templates.cpp index c82af0b..0de6035 100644 --- a/src/kile/templates.cpp +++ b/src/kile/templates.cpp @@ -117,7 +117,7 @@ bool Manager::remove(Info ti) { return removeAppData(ti.path) && removeAppData(ti.icon); } -bool Manager::tqreplace(const KileTemplate::Info& toBeReplaced, const KURL& newTemplateSourceURL, const TQString& newName, const KURL& newIcon) { +bool Manager::replace(const KileTemplate::Info& toBeReplaced, const KURL& newTemplateSourceURL, const TQString& newName, const KURL& newIcon) { KileDocument::Type type = m_kileInfo->extensions()->determineDocumentType(newTemplateSourceURL); //start by copying the files that belong to the new template to a safe place @@ -168,7 +168,7 @@ void Manager::scanForTemplates() { ti.name = fileInfo.baseName(true).mid(9); //remove "template_", do it this way to avoid problems with user input! ti.type = extensions->determineDocumentType(KURL::fromPathOrURL(ti.path)); ti.icon = KGlobal::dirs()->findResource("appdata","pics/type_" + ti.name + extensions->defaultExtensionForDocumentType(ti.type) + ".kileicon"); - if (m_TemplateList.tqcontains(ti)) + if (m_TemplateList.contains(ti)) { KILE_DEBUG() << "\tignoring: " << ti.path << endl; } @@ -356,7 +356,7 @@ void TemplateIconView::addTemplateIcons(KileDocument::Type type) { KileTemplate::Info info = *i; TQString classname = info.name; - if ( !map.tqcontains(classname) || map[classname]==true ) + if ( !map.contains(classname) || map[classname]==true ) { new TemplateItem(this, info); } |