mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42: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 <kiconloader.h>
|
||||||
#include <klocale.h>
|
#include <klocale.h>
|
||||||
|
|
||||||
#include <QtCore/QTimer>
|
#include <QTimer>
|
||||||
|
#include <QDBusConnection>
|
||||||
|
#include <QDBusConnectionInterface>
|
||||||
#include <QDesktopWidget>
|
#include <QDesktopWidget>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -48,11 +50,6 @@
|
||||||
#include <netwm.h>
|
#include <netwm.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef QT_DBUS_LIB
|
|
||||||
#include <QtDBus/QDBusConnection>
|
|
||||||
#include <QtDBus/QDBusConnectionInterface>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
using namespace std;
|
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)
|
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 dbusServiceName = "org.freedesktop.Notifications";
|
||||||
const QString dbusInterfaceName = "org.freedesktop.Notifications";
|
const QString dbusInterfaceName = "org.freedesktop.Notifications";
|
||||||
const QString dbusPath = "/org/freedesktop/Notifications";
|
const QString dbusPath = "/org/freedesktop/Notifications";
|
||||||
|
@ -144,7 +140,6 @@ bool sendVisualNotification(const QString &text, const QString &title, const QSt
|
||||||
} else {
|
} else {
|
||||||
//kDebug() << "Unexpected reply type";
|
//kDebug() << "Unexpected reply type";
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue