/* This file is part of the KDE libraries SPDX-FileCopyrightText: 2015 Martin Gräßlin SPDX-License-Identifier: LGPL-2.0-or-later */ #include "kglobalaccel_interface.h" #include "globalshortcutsregistry.h" class KGlobalAccelInterface::Private { public: Private(GlobalShortcutsRegistry *owner) : owner(owner) { } GlobalShortcutsRegistry *owner; }; KGlobalAccelInterface::KGlobalAccelInterface(QObject *owner) : QObject(owner) , d(new Private(qobject_cast(owner))) { } KGlobalAccelInterface::~KGlobalAccelInterface() = default; void KGlobalAccelInterface::setRegistry(GlobalShortcutsRegistry *registry) { setParent(registry); d->owner = registry; } bool KGlobalAccelInterface::keyPressed(int keyQt) { return d->owner->keyPressed(keyQt); } void KGlobalAccelInterface::grabKeys() { d->owner->grabKeys(); } void KGlobalAccelInterface::ungrabKeys() { d->owner->ungrabKeys(); } bool KGlobalAccelInterface::keyReleased(int keyQt) { return d->owner->keyReleased(keyQt); } bool KGlobalAccelInterface::pointerPressed(Qt::MouseButtons buttons) { return d->owner->pointerPressed(buttons); } bool KGlobalAccelInterface::axisTriggered(int axis) { return d->owner->axisTriggered(axis); } void KGlobalAccelInterface::resetModifierOnlyState() { d->owner->resetModifierOnlyState(); }