From f7f45375f815a03f7255ab013b04d5acd4fe707f Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Wed, 21 May 2025 07:21:17 +0200 Subject: [PATCH] more logging for notifications --- src/librssguard/gui/notifications/basetoastnotification.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/librssguard/gui/notifications/basetoastnotification.cpp b/src/librssguard/gui/notifications/basetoastnotification.cpp index 0805f3d27..cc33fc49d 100644 --- a/src/librssguard/gui/notifications/basetoastnotification.cpp +++ b/src/librssguard/gui/notifications/basetoastnotification.cpp @@ -77,10 +77,12 @@ void BaseToastNotification::setupTimedClosing(bool want_shorter_timeout) { bool BaseToastNotification::eventFilter(QObject* watched, QEvent* event) { if (watched == this && event->type() == QEvent::Type::Enter) { + qDebugNN << LOGSEC_NOTIFICATIONS << "Notification got ENTER event."; stopTimedClosing(); } if (watched == this && event->type() == QEvent::Type::Leave) { + qDebugNN << LOGSEC_NOTIFICATIONS << "Notification got LEAVE event."; setupTimedClosing(true); } @@ -99,12 +101,14 @@ bool BaseToastNotification::eventFilter(QObject* watched, QEvent* event) { void BaseToastNotification::closeEvent(QCloseEvent* event) { Q_UNUSED(event) + qDebugNN << LOGSEC_NOTIFICATIONS << "Notification got CLOSE event."; stopTimedClosing(); emit closeRequested(this); } void BaseToastNotification::timerEvent(QTimerEvent* event) { if (event->timerId() == m_timerId) { + qDebugNN << LOGSEC_NOTIFICATIONS << "Notification got TIMER event."; stopTimedClosing(); emit closeRequested(this); }