Commit ba510444 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

QtDBus is already a required package

parent 84db6eb7
......@@ -26,9 +26,7 @@ target_link_libraries(kdialog
KF5::WindowSystem
)
if(Qt5DBus_FOUND)
target_link_libraries(kdialog Qt5::DBus)
endif()
target_link_libraries(kdialog Qt::DBus)
if (HAVE_X11)
target_link_libraries(kdialog ${X11_X11_LIB})
......
/* Define to 1 if the QtDBus module is present. */
#cmakedefine Qt5DBus_FOUND 1
#cmakedefine HAVE_X11 ${HAVE_X11}
......@@ -49,10 +49,8 @@
#include <X11/Xutil.h>
#endif
#ifdef Qt5DBus_FOUND
#include <QDBusConnection>
#include <QDBusConnectionInterface>
#endif
#include <unistd.h>
#include <QCommandLineParser>
......@@ -107,7 +105,6 @@ bool WinIdEmbedder::eventFilter(QObject *o, QEvent *e)
*/
static bool sendVisualNotification(const QString &text, const QString &title, const QString &icon, int timeout)
{
#ifdef Qt5DBus_FOUND
const QString dbusServiceName = QStringLiteral("org.freedesktop.Notifications");
const QString dbusInterfaceName = QStringLiteral("org.freedesktop.Notifications");
const QString dbusPath = QStringLiteral("/org/freedesktop/Notifications");
......@@ -154,7 +151,7 @@ static bool sendVisualNotification(const QString &text, const QString &title, co
} else {
//kDebug() << "Unexpected reply type";
}
#endif
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment