aboutsummaryrefslogtreecommitdiff
path: root/src/qt/notificator.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-09-29 10:50:40 -0700
committerGavin Andresen <gavinandresen@gmail.com>2011-09-29 10:50:40 -0700
commit9a7e5ed3b000a9788f3e3e2a145c4504473d812e (patch)
treea555362fbbf25d6f26f5ee9f048555bb0864d2f2 /src/qt/notificator.cpp
parent7dd4001b40b65b66ba5d47e628f10253ccb5d99c (diff)
parent20091df725e56376f6df0f71d19c63a34a5bf71d (diff)
Merge pull request #539 from laanwj/qt2
Qt GUI updates
Diffstat (limited to 'src/qt/notificator.cpp')
-rw-r--r--src/qt/notificator.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/qt/notificator.cpp b/src/qt/notificator.cpp
index 86ccfc8541..cf0c0a3901 100644
--- a/src/qt/notificator.cpp
+++ b/src/qt/notificator.cpp
@@ -9,7 +9,7 @@
#include <QSystemTrayIcon>
#include <QMessageBox>
-#ifdef QT_DBUS
+#ifdef USE_DBUS
#include <QtDBus/QtDBus>
#include <stdint.h>
#endif
@@ -23,7 +23,7 @@ Notificator::Notificator(const QString &programName, QSystemTrayIcon *trayicon,
programName(programName),
mode(None),
trayIcon(trayicon)
-#ifdef QT_DBUS
+#ifdef USE_DBUS
,interface(0)
#endif
{
@@ -31,7 +31,7 @@ Notificator::Notificator(const QString &programName, QSystemTrayIcon *trayicon,
{
mode = QSystemTray;
}
-#ifdef QT_DBUS
+#ifdef USE_DBUS
interface = new QDBusInterface("org.freedesktop.Notifications",
"/org/freedesktop/Notifications", "org.freedesktop.Notifications");
if(interface->isValid())
@@ -43,12 +43,12 @@ Notificator::Notificator(const QString &programName, QSystemTrayIcon *trayicon,
Notificator::~Notificator()
{
-#ifdef QT_DBUS
+#ifdef USE_DBUS
delete interface;
#endif
}
-#ifdef QT_DBUS
+#ifdef USE_DBUS
// Loosely based on http://www.qtcentre.org/archive/index.php/t-25879.html
class FreedesktopImage
@@ -205,7 +205,7 @@ void Notificator::notify(Class cls, const QString &title, const QString &text, c
{
switch(mode)
{
-#ifdef QT_DBUS
+#ifdef USE_DBUS
case Freedesktop:
notifyDBus(cls, title, text, icon, millisTimeout);
break;