dhcpcd-qt: Remove support for KDE Notifications
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-qt.cpp
index b9cf703c5ed351776a4042a3ea9476b81e7ef3e9..ab1bfc4735733cb84fe06c95782dac0ac74a0c7f 100644 (file)
 #include "dhcpcd-ifmenu.h"
 #include "dhcpcd-ssidmenu.h"
 
-#if defined(KNOTIFY5)
-#include <KNotification>
-#elif defined(KNOTIFY4)
-#include <knotification.h>
-#endif
-
 DhcpcdQt::DhcpcdQt()
 {
 
@@ -539,14 +533,6 @@ void DhcpcdQt::dispatch()
 void DhcpcdQt::notify(const QString &title, const QString &msg,
     const QString &icon)
 {
-
-#if defined(KNOTIFY4) || defined(KNOTIFY5)
-       KNotification *n = new KNotification("event", this);
-       n->setIconName(icon);
-       n->setTitle(title);
-       n->setText(msg);
-       n->sendEvent();
-#else
 #if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
        const QIcon i = getIcon("status", icon);
 #else
@@ -556,7 +542,6 @@ void DhcpcdQt::notify(const QString &title, const QString &msg,
                i = QSystemTrayIcon::Warning;
 #endif
        trayIcon->showMessage(title, msg, i);
-#endif
 }
 
 void DhcpcdQt::closeEvent(QCloseEvent *event)