/* SPDX-FileCopyrightText: 2019 Harald Sitter SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #pragma once #include class QKeyEvent; // Simple QGuiApp overlay to gobble up all key events for input-detection. class Application final : public QGuiApplication { Q_OBJECT public: using QGuiApplication::QGuiApplication; bool notify(QObject *receiver, QEvent *event) override; static Application *instance(); Q_SIGNALS: void keyEvent(QKeyEvent *event); };