mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kdialog: assume QT_DBUS_LIB is defined
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
993837c70d
commit
cd45603775
1 changed files with 3 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue