diff --git a/src/kdeui/kaction.cpp b/src/kdeui/kaction.cpp --- a/src/kdeui/kaction.cpp +++ b/src/kdeui/kaction.cpp @@ -99,7 +99,6 @@ KAction::~KAction() { - KGestureMap::self()->removeAllGestures(this); delete d; } @@ -215,60 +214,6 @@ } } -KShapeGesture KAction::shapeGesture(ShortcutTypes type) const -{ - Q_ASSERT(type); - if (type & DefaultShortcut) { - return KGestureMap::self()->defaultShapeGesture(this); - } else { - return KGestureMap::self()->shapeGesture(this); - } -} - -KRockerGesture KAction::rockerGesture(ShortcutTypes type) const -{ - Q_ASSERT(type); - if (type & DefaultShortcut) { - return KGestureMap::self()->defaultRockerGesture(this); - } else { - return KGestureMap::self()->rockerGesture(this); - } -} - -void KAction::setShapeGesture(const KShapeGesture &gest, ShortcutTypes type) -{ - Q_ASSERT(type); - - if (type & DefaultShortcut) { - KGestureMap::self()->setDefaultShapeGesture(this, gest); - } - - if (type & ActiveShortcut) { - if (KGestureMap::self()->findAction(gest)) { - kDebug(283) << "New mouse gesture already in use, won't change gesture."; - return; - } - KGestureMap::self()->setShapeGesture(this, gest); - } -} - -void KAction::setRockerGesture(const KRockerGesture &gest, ShortcutTypes type) -{ - Q_ASSERT(type); - - if (type & DefaultShortcut) { - KGestureMap::self()->setDefaultRockerGesture(this, gest); - } - - if (type & ActiveShortcut) { - if (KGestureMap::self()->findAction(gest)) { - kDebug(283) << "New mouse gesture already in use, won't change gesture."; - return; - } - KGestureMap::self()->setRockerGesture(this, gest); - } -} - void KAction::setHelpText(const QString &text) { setStatusTip(text); diff --git a/src/kdeui/kaction_p.h b/src/kdeui/kaction_p.h --- a/src/kdeui/kaction_p.h +++ b/src/kdeui/kaction_p.h @@ -21,7 +21,6 @@ #include "kaction.h" #include "kglobalaccel.h" -#include "kgesturemap_p.h" #include #include diff --git a/src/kdeui/kapplication.cpp b/src/kdeui/kapplication.cpp --- a/src/kdeui/kapplication.cpp +++ b/src/kdeui/kapplication.cpp @@ -463,8 +463,6 @@ KMessage::setMessageHandler(new KMessageBoxMessageHandler(nullptr)); - KGestureMap::self()->installEventFilterOnMe(q); - q->connect(KToolInvocation::self(), SIGNAL(kapplication_hook(QStringList&,QByteArray&)), q, SLOT(_k_slot_KToolInvocation_hook(QStringList&,QByteArray&)));