Inactivity lock timeout

This commit is contained in:
tobtoht
2022-03-04 17:20:17 +01:00
parent 4950d659f3
commit 7708cb5705
11 changed files with 171 additions and 7 deletions
+19
View File
@@ -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);
}