Add Donate standard action to control menu

REVIEW: 128946
This commit is contained in:
Elvis Angelaccio 2016-09-20 11:24:15 +02:00
parent 87ddbf770e
commit ca53974181

View file

@ -50,6 +50,7 @@
#include <KActionMenu> #include <KActionMenu>
#include <KAuthorized> #include <KAuthorized>
#include <KConfig> #include <KConfig>
#include <kconfigwidgets_version.h>
#include <kdualaction.h> #include <kdualaction.h>
#include <KJobWidgets> #include <KJobWidgets>
#include <QLineEdit> #include <QLineEdit>
@ -868,6 +869,10 @@ void DolphinMainWindow::updateControlMenu()
helpMenu->addSeparator(); helpMenu->addSeparator();
helpMenu->addAction(ac->action(KStandardAction::name(KStandardAction::ReportBug))); helpMenu->addAction(ac->action(KStandardAction::name(KStandardAction::ReportBug)));
helpMenu->addSeparator(); helpMenu->addSeparator();
#if KCONFIGWIDGETS_VERSION >= QT_VERSION_CHECK(5, 26, 0)
helpMenu->addAction(ac->action(KStandardAction::name(KStandardAction::Donate)));
helpMenu->addSeparator();
#endif
helpMenu->addAction(ac->action(KStandardAction::name(KStandardAction::SwitchApplicationLanguage))); helpMenu->addAction(ac->action(KStandardAction::name(KStandardAction::SwitchApplicationLanguage)));
helpMenu->addSeparator(); helpMenu->addSeparator();
helpMenu->addAction(ac->action(KStandardAction::name(KStandardAction::AboutApp))); helpMenu->addAction(ac->action(KStandardAction::name(KStandardAction::AboutApp)));