mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 03:59:29 +00:00
19 lines
No EOL
455 B
C++
19 lines
No EOL
455 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
|
|
|
|
#include "EventFilter.h"
|
|
|
|
#include <QKeyEvent>
|
|
#include <QDebug>
|
|
|
|
EventFilter::EventFilter(QObject *parent)
|
|
: QObject(parent)
|
|
{}
|
|
|
|
bool EventFilter::eventFilter(QObject *obj, QEvent *ev) {
|
|
if (ev->type() == QEvent::KeyPress || ev->type() == QEvent::MouseButtonRelease) {
|
|
emit userActivity();
|
|
}
|
|
|
|
return QObject::eventFilter(obj, ev);
|
|
} |