mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-20 00:28:39 +02:00
Inactivity lock timeout
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// SPDX-FileCopyrightText: 2020-2022 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);
|
||||
}
|
||||
Reference in New Issue
Block a user