1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

DesktopNotificationsFactory: Don't include config.h in header

This commit is contained in:
David Rosca 2018-02-25 21:54:01 +01:00
parent 13c9025c40
commit 532af04848
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 6 additions and 5 deletions

View File

@ -111,17 +111,21 @@ void DesktopNotificationsFactory::nativeNotificationPreview()
m_notifType = type; m_notifType = type;
} }
#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS)
void DesktopNotificationsFactory::updateLastId(const QDBusMessage &msg) void DesktopNotificationsFactory::updateLastId(const QDBusMessage &msg)
{ {
Q_UNUSED(msg)
#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS)
QVariantList list = msg.arguments(); QVariantList list = msg.arguments();
if (list.count() > 0) { if (list.count() > 0) {
m_uint = list.at(0).toInt(); m_uint = list.at(0).toInt();
} }
#endif
} }
void DesktopNotificationsFactory::error(const QDBusError &error) void DesktopNotificationsFactory::error(const QDBusError &error)
{ {
Q_UNUSED(error)
#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS)
qWarning() << "QDBusError:" << error.message(); qWarning() << "QDBusError:" << error.message();
}
#endif #endif
}

View File

@ -19,7 +19,6 @@
#define DESKTOPNOTIFICATIONSFACTORY_H #define DESKTOPNOTIFICATIONSFACTORY_H
#include "qzcommon.h" #include "qzcommon.h"
#include "../config.h"
#include <QObject> #include <QObject>
#include <QPoint> #include <QPoint>
@ -48,10 +47,8 @@ public:
void nativeNotificationPreview(); void nativeNotificationPreview();
private Q_SLOTS: private Q_SLOTS:
#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS)
void updateLastId(const QDBusMessage &msg); void updateLastId(const QDBusMessage &msg);
void error(const QDBusError &error); void error(const QDBusError &error);
#endif
private: private:
bool m_enabled; bool m_enabled;