mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Add Donate standard action to control menu
REVIEW: 128946
This commit is contained in:
parent
87ddbf770e
commit
ca53974181
1 changed files with 5 additions and 0 deletions
|
@ -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)));
|
||||||
|
|
Loading…
Reference in a new issue