kdialog: assume QT_DBUS_LIB is defined

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-10-23 07:51:09 +03:00
parent 993837c70d
commit cd45603775

View file

@ -39,7 +39,9 @@
#include <kiconloader.h>
#include <klocale.h>
#include <QtCore/QTimer>
#include <QTimer>
#include <QDBusConnection>
#include <QDBusConnectionInterface>
#include <QDesktopWidget>
#include <iostream>
@ -48,11 +50,6 @@
#include <netwm.h>
#endif
#ifdef QT_DBUS_LIB
#include <QtDBus/QDBusConnection>
#include <QtDBus/QDBusConnectionInterface>
#endif
#include <unistd.h>
using namespace std;
@ -98,7 +95,6 @@ bool WinIdEmbedder::eventFilter(QObject *o, QEvent *e)
*/
bool sendVisualNotification(const QString &text, const QString &title, const QString &icon, int timeout)
{
#ifdef QT_DBUS_LIB
const QString dbusServiceName = "org.freedesktop.Notifications";
const QString dbusInterfaceName = "org.freedesktop.Notifications";
const QString dbusPath = "/org/freedesktop/Notifications";
@ -144,7 +140,6 @@ bool sendVisualNotification(const QString &text, const QString &title, const QSt
} else {
//kDebug() << "Unexpected reply type";
}
#endif
return false;
}