From e02925b7b5583a13311570442dc5ba6f936411e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Wed, 10 Jul 2013 00:11:58 +0200 Subject: [PATCH] Use QAction internally in defaultActions() --- src/plasma/private/applet_p.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plasma/private/applet_p.cpp b/src/plasma/private/applet_p.cpp index f7b982e7c..62f7c663d 100644 --- a/src/plasma/private/applet_p.cpp +++ b/src/plasma/private/applet_p.cpp @@ -197,25 +197,25 @@ KActionCollection* AppletPrivate::defaultActions(QObject *parent) KActionCollection *actions = new KActionCollection(parent); actions->setConfigGroup("Shortcuts-Applet"); - KAction *configAction = actions->add("configure"); + QAction *configAction = actions->add("configure"); configAction->setAutoRepeat(false); configAction->setText(i18n("Widget Settings")); configAction->setIcon(QIcon::fromTheme("configure")); - configAction->setShortcut(KShortcut("alt+d, s")); + configAction->setShortcut(QKeySequence("alt+d, s")); configAction->setData(Plasma::Types::ConfigureAction); - KAction *closeApplet = actions->add("remove"); + QAction *closeApplet = actions->add("remove"); closeApplet->setAutoRepeat(false); closeApplet->setText(i18n("Remove this Widget")); closeApplet->setIcon(QIcon::fromTheme("edit-delete")); - closeApplet->setShortcut(KShortcut("alt+d, r")); + closeApplet->setShortcut(QKeySequence("alt+d, r")); closeApplet->setData(Plasma::Types::DestructiveAction); - KAction *runAssociatedApplication = actions->add("run associated application"); + QAction *runAssociatedApplication = actions->add("run associated application"); runAssociatedApplication->setAutoRepeat(false); runAssociatedApplication->setText(i18n("Run the Associated Application")); runAssociatedApplication->setIcon(QIcon::fromTheme("system-run")); - runAssociatedApplication->setShortcut(KShortcut("alt+d, t")); + runAssociatedApplication->setShortcut(QKeySequence("alt+d, t")); runAssociatedApplication->setVisible(false); runAssociatedApplication->setEnabled(false); runAssociatedApplication->setData(Plasma::Types::ControlAction);