Commit c2ec5710 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Remove defunct action to open KRunner

CCBUG: 428657
parent ea21775a
......@@ -436,28 +436,6 @@ KSysGuardProcessList::KSysGuardProcessList(QWidget* parent, const QString &hostN
// Add Run Command...
auto runCommandAction = new QAction(i18nc("@action:inmenu", "Run Command"), this);
// //INFO: This is one way of how to find out the two required parameters for the globalShortcut method:
// auto list = KGlobalAccel::getGlobalShortcutsByKey(QKeySequence(QStringLiteral("Alt+Space")));
// foreach (auto item, list) {
// qDebug() << item.componentUniqueName() << item.uniqueName();
// //prints: 'krunner', 'run command'
// }
const auto runCommandShortcutList = KGlobalAccel::self()->globalShortcut(QStringLiteral("krunner"), QStringLiteral("run command"));
connect(runCommandAction, &QAction::triggered, this, [this](){
KService::Ptr service = KService::serviceByDesktopName(QStringLiteral("krunner"));
if (service) {
auto *job = new KIO::ApplicationLauncherJob(service);
job->setUiDelegate(new KDialogJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, window()));
// Add the xkill functionality...
auto killWindowAction = new QAction(QIcon::fromTheme(QStringLiteral("document-close")),
i18nc("@action:inmenu", "Kill a Window"), this);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment