[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kstars] kstars/oal: Use KStandardGuiItem more
From: Pino Toscano <pino () kde ! org>
Date: 2016-12-10 9:00:48
Message-ID: E1cFdWS-0006K5-8o () code ! kde ! org
[Download RAW message or body]
Git commit 6b7d0ded6df357b3aa21d066d1a2ec5dccb0a6bb by Pino Toscano.
Committed on 10/12/2016 at 09:00.
Pushed by pino into branch 'master'.
Use KStandardGuiItem more
... instead of creating KGuiItem's from scratch
M +2 -1 kstars/oal/oal.h
https://commits.kde.org/kstars/6b7d0ded6df357b3aa21d066d1a2ec5dccb0a6bb
diff --git a/kstars/oal/oal.h b/kstars/oal/oal.h
index 678522872..baa620791 100644
--- a/kstars/oal/oal.h
+++ b/kstars/oal/oal.h
@@ -25,6 +25,7 @@
#include <kmessagebox.h>
#endif
#include <KLocalizedString>
+#include <KStandardGuiItem>
=
/**
* @namespace OAL
@@ -52,7 +53,7 @@ namespace OAL
inline int warningOverwrite( QString message )
{
#ifndef KSTARS_LITE
- return KMessageBox::warningYesNo( 0, message, xi18n("Overwrite"), =
KGuiItem(xi18n("Overwrite")), KGuiItem(xi18n("Cancel")) );
+ return KMessageBox::warningYesNo( 0, message, xi18n("Overwrite"), =
KStandardGuiItem::overwrite(), KStandardGuiItem::cancel() );
#else
return 0;
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic