From kde-commits Sat Dec 10 09:00:48 2016 From: Pino Toscano Date: Sat, 10 Dec 2016 09:00:48 +0000 To: kde-commits Subject: [kstars] kstars/oal: Use KStandardGuiItem more Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=148136045627576 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 #endif #include +#include = /** * @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