Commit 48f4a55c authored by Pino Toscano's avatar Pino Toscano
Browse files

Use KStandardGuiItem more

... instead of creating the KGuiItem's from scratch
parent c40a2c04
......@@ -42,6 +42,7 @@
#include <QInputDialog>
#include <KMessageBox>
#include <KLocalizedString>
#include <KStandardGuiItem>
#include <QTimer>
#include <QDialogButtonBox>
......@@ -122,7 +123,7 @@ void TemplateManagementDialog::slotAddTemplate()
int rc = KMessageBox::warningContinueCancel(
this,
i18n("A template with that name already exists, do you want to overwrite it?"),
i18n("Duplicate Template Name"), KGuiItem(i18n("Overwrite")));
i18n("Duplicate Template Name"), KStandardGuiItem::overwrite());
if (rc == KMessageBox::Cancel) {
QTimer::singleShot(0, this, &TemplateManagementDialog::slotAddTemplate);
return;
......@@ -157,7 +158,7 @@ void TemplateManagementDialog::slotRemoveTemplate()
int rc = KMessageBox::warningContinueCancel(
this,
i18n("Are you sure that you want to remove the template <b>%1</b>?", item->text()),
i18n("Remove Template"), KGuiItem(i18n("Remove")));
i18n("Remove Template"), KStandardGuiItem::remove());
if (rc == KMessageBox::Cancel) {
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment