mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-19 18:26:34 +01:00
DesktopNotificationsFactory: Don't include config.h in header
This commit is contained in:
parent
13c9025c40
commit
532af04848
@ -111,17 +111,21 @@ void DesktopNotificationsFactory::nativeNotificationPreview()
|
||||
m_notifType = type;
|
||||
}
|
||||
|
||||
#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS)
|
||||
void DesktopNotificationsFactory::updateLastId(const QDBusMessage &msg)
|
||||
{
|
||||
Q_UNUSED(msg)
|
||||
#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS)
|
||||
QVariantList list = msg.arguments();
|
||||
if (list.count() > 0) {
|
||||
m_uint = list.at(0).toInt();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void DesktopNotificationsFactory::error(const QDBusError &error)
|
||||
{
|
||||
Q_UNUSED(error)
|
||||
#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS)
|
||||
qWarning() << "QDBusError:" << error.message();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -19,7 +19,6 @@
|
||||
#define DESKTOPNOTIFICATIONSFACTORY_H
|
||||
|
||||
#include "qzcommon.h"
|
||||
#include "../config.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QPoint>
|
||||
@ -48,10 +47,8 @@ public:
|
||||
void nativeNotificationPreview();
|
||||
|
||||
private Q_SLOTS:
|
||||
#if defined(Q_OS_UNIX) && !defined(DISABLE_DBUS)
|
||||
void updateLastId(const QDBusMessage &msg);
|
||||
void error(const QDBusError &error);
|
||||
#endif
|
||||
|
||||
private:
|
||||
bool m_enabled;
|
||||
|
Loading…
Reference in New Issue
Block a user