...
  View open merge request
Commits (3)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="kwrite" version="17">
<kpartgui name="kwrite" version="18">
<MenuBar>
<Menu name="file" noMerge="1">
<text>&amp;File</text>
......@@ -51,6 +51,7 @@
<DefineGroup name="configure_merge" append="save_merge"/>
<Action name="options_configure_toolbars"/>
<Action name="settings_configure" append="configure_merge"/>
<Action name="set_confdlg"/>
</Menu>
<Menu name="help">
<text>&amp;Help</text>
......
......@@ -23,6 +23,7 @@
#include "config.h"
#include "kwriteapplication.h"
#include <knotifications_version.h>
#include <ktexteditor/application.h>
#include <ktexteditor/document.h>
#include <ktexteditor/editor.h>
......@@ -183,6 +184,15 @@ void KWrite::setupActions()
a = actionCollection()->addAction(QStringLiteral("help_about_editor"));
a->setText(i18n("&About Editor Component"));
connect(a, &QAction::triggered, this, &KWrite::aboutEditor);
// Override text and shortcut for "Configure Editor" action
QAction* configureEditor = actionCollection()->action(QStringLiteral("set_confdlg"));
configureEditor->setText(i18n("Configure KWrite..."));
#if KConfig_VERSION >= QT_VERSION_CHECK(5,64,0)
configureEditor->setShortcut(KStandardShortcut::preferences()[0]);
#else
configureEditor->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_Comma));
#endif
}
// load on url
......