summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2016-12-04 14:16:59 (GMT)
committerPino Toscano <pino@kde.org>2016-12-04 14:16:59 (GMT)
commit20b9078c683df3207ad811f7bcd7879918f1556b (patch)
tree68019136a645e56f63715bc3ad238bbd34800f62
parentf1d98a561472a684b1737d5a41c1e9f8463fd7d2 (diff)
Use KStandardGuiItem::overwrite()
... instead of creating the KGuiItem from scratch
-rw-r--r--document/kpDocument_Save.cpp2
-rw-r--r--lgpl/generic/kpColorCollection.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/document/kpDocument_Save.cpp b/document/kpDocument_Save.cpp
index 0fe3baf..0c63803 100644
--- a/document/kpDocument_Save.cpp
+++ b/document/kpDocument_Save.cpp
@@ -333,7 +333,7 @@ bool kpDocument::savePixmapToFile (const QImage &pixmap,
"Do you want to overwrite it?",
kpUrlFormatter::PrettyFilename (url)),
QString(),
- KGuiItem(i18n ("Overwrite")));
+ KStandardGuiItem::overwrite ());
if (result != KMessageBox::Continue)
{
diff --git a/lgpl/generic/kpColorCollection.cpp b/lgpl/generic/kpColorCollection.cpp
index 30e674c..69aa0a0 100644
--- a/lgpl/generic/kpColorCollection.cpp
+++ b/lgpl/generic/kpColorCollection.cpp
@@ -296,7 +296,7 @@ kpColorCollection::saveAs(const QUrl &url, bool showOverwritePrompt,
"Do you want to overwrite it?",
kpUrlFormatter::PrettyFilename (url)),
QString (),
- KGuiItem (i18n ("Overwrite")));
+ KStandardGuiItem::overwrite ());
if (result != KMessageBox::Continue)
return false;
}