From: Manuel Nickschas Date: Sat, 5 Jul 2008 21:43:21 +0000 (+0200) Subject: Work around MOC ignoring -D options by having dummy stubs X-Git-Tag: 0.3.0~230 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=4e80050d6bf8ef944dd5af2be8f24ea8e8eec0b2;ds=sidebyside Work around MOC ignoring -D options by having dummy stubs --- 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);