diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core Widgets Svg) -find_package(KF5 5.29 REQUIRED +find_package(KF5 5.71 REQUIRED Archive Config CoreAddons diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -586,8 +586,10 @@ QString message(xi18nc("@info", "Activity detected in monitored terminal in session \"%1\".", m_tabBar->tabTitle(session->id()))); - KNotification::event(QLatin1String("activity"), message, QPixmap(), terminal->partWidget(), - KNotification::CloseWhenWidgetActivated); + KNotification *n = new KNotification(QLatin1String("activity"), KNotification::CloseWhenWidgetActivated); + n->setText(message); + n->setWindow(terminal->partWidget()->window()->windowHandle()); + n->sendEvent(); } }