diff options
Diffstat (limited to 'src/kile/managetemplatesdialog.cpp')
-rw-r--r-- | src/kile/managetemplatesdialog.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kile/managetemplatesdialog.cpp b/src/kile/managetemplatesdialog.cpp index c049b59..7396756 100644 --- a/src/kile/managetemplatesdialog.cpp +++ b/src/kile/managetemplatesdialog.cpp @@ -15,7 +15,7 @@ #include "managetemplatesdialog.h" -#include <tqlayout.h> +#include <layout.h> #include <tqlabel.h> #include <tqtooltip.h> @@ -71,7 +71,7 @@ ManageTemplatesDialog::ManageTemplatesDialog(KileTemplate::Manager *templateMana m_nameEdit = new KLineEdit(fileName, page); nameLayout->addWidget(m_nameEdit); - nameLayout->addWidget(new TQLabel(i18n("Type: %1").tqarg(KileInfo::documentTypeToString(m_templateType)), page)); + nameLayout->addWidget(new TQLabel(i18n("Type: %1").arg(KileInfo::documentTypeToString(m_templateType)), page)); TQHBoxLayout *iconLayout = new TQHBoxLayout(topLayout, spacingHint()); iconLayout->addWidget(new TQLabel(i18n("Icon:"), page)); @@ -210,19 +210,19 @@ void ManageTemplatesDialog::addTemplate() { } if (!KIO::NetAccess::exists(iconURL, true, kapp->mainWidget())) { - KMessageBox::error(this, i18n("Sorry, but the icon file: %1\ndoes not seem to exist. Please choose a new icon.").tqarg(icon)); + KMessageBox::error(this, i18n("Sorry, but the icon file: %1\ndoes not seem to exist. Please choose a new icon.").arg(icon)); return; } if (!KIO::NetAccess::exists(m_sourceURL, true, kapp->mainWidget())) { - KMessageBox::error(this, i18n("Sorry, but the file: %1\ndoes not seem to exist. Maybe you forgot to save the file?").tqarg(m_sourceURL.prettyURL())); + KMessageBox::error(this, i18n("Sorry, but the file: %1\ndoes not seem to exist. Maybe you forgot to save the file?").arg(m_sourceURL.prettyURL())); return; } TQListViewItem* item = m_templateList->selectedItem(); if(!item && m_templateManager->searchForTemplate(templateName, m_templateType)) { - KMessageBox::error(this, i18n("Sorry, but a template named \"%1\" already exists.\nPlease remove it first.").tqarg(templateName)); + KMessageBox::error(this, i18n("Sorry, but a template named \"%1\" already exists.\nPlease remove it first.").arg(templateName)); return; } @@ -231,7 +231,7 @@ void ManageTemplatesDialog::addTemplate() { TemplateListViewItem *templateItem = dynamic_cast<TemplateListViewItem*>(item); Q_ASSERT(templateItem); KileTemplate::Info templateInfo = templateItem->getTemplateInfo(); - if (KMessageBox::warningYesNo(this, i18n("You are about to replace the template \"%1\"; are you sure?").tqarg(templateInfo.name)) == KMessageBox::No) { + if (KMessageBox::warningYesNo(this, i18n("You are about to replace the template \"%1\"; are you sure?").arg(templateInfo.name)) == KMessageBox::No) { reject(); return; } @@ -266,7 +266,7 @@ bool ManageTemplatesDialog::removeTemplate() return false; } - if (KMessageBox::warningYesNo(this, i18n("You are about to remove the template \"%1\"; are you sure?").tqarg(templateInfo.name)) == KMessageBox::No) { + if (KMessageBox::warningYesNo(this, i18n("You are about to remove the template \"%1\"; are you sure?").arg(templateInfo.name)) == KMessageBox::No) { return false; } |