mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
618 B
29 lines
618 B
/* |
|
SPDX-FileCopyrightText: 2019 Harald Sitter <[email protected]> |
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL |
|
*/ |
|
|
|
#ifndef APPLICATION_H |
|
#define APPLICATION_H |
|
|
|
#include <QGuiApplication> |
|
|
|
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); |
|
}; |
|
|
|
#endif // APPLICATION_H
|
|
|