From 4e80050d6bf8ef944dd5af2be8f24ea8e8eec0b2 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sat, 5 Jul 2008 23:43:21 +0200 Subject: [PATCH] Work around MOC ignoring -D options by having dummy stubs --- src/qtui/mainwin.cpp | 5 +++++ src/qtui/mainwin.h | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index 2ae203d9..e3f4e221 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -681,6 +681,11 @@ void MainWin::desktopNotificationInvoked(uint id, const QString & action) { qDebug() << "OID: " << notificationId << " ID: " << id << " Action: " << action << " Time: " << QTime::currentTime().toString(); } +#else /* HAVE_DBUS */ + +void MainWin::desktopNotificationClosed(uint, uint) {} +void MainWin::desktopNotificationInvoked(uint, const QString &) {} + #endif /* HAVE_DBUS */ void MainWin::displayTrayIconMessage(const QString &title, const QString &message) { diff --git a/src/qtui/mainwin.h b/src/qtui/mainwin.h index b2ea75a4..73735418 100644 --- a/src/qtui/mainwin.h +++ b/src/qtui/mainwin.h @@ -107,10 +107,8 @@ class MainWin : public QMainWindow { void loadLayout(); void saveLayout(); -#ifdef HAVE_DBUS void desktopNotificationClosed(uint id, uint reason); void desktopNotificationInvoked(uint id, const QString & action); -#endif signals: void connectToCore(const QVariantMap &connInfo); -- 2.20.1