Remove qRegisterMetaTypeStreamOperators call for Qt6 builds

This commit is contained in:
Alexander Lohnau 2023-04-16 10:06:13 +02:00
parent 4e7764f328
commit b4b4837b14

View file

@ -32,7 +32,9 @@ NotificationsListener::NotificationsListener(KdeConnectPlugin *aPlugin)
: QObject(aPlugin) : QObject(aPlugin)
, m_plugin(aPlugin) , m_plugin(aPlugin)
{ {
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
qRegisterMetaTypeStreamOperators<NotifyingApplication>("NotifyingApplication"); qRegisterMetaTypeStreamOperators<NotifyingApplication>("NotifyingApplication");
#endif
GError *error = nullptr; GError *error = nullptr;
m_gdbusConnection = g_bus_get_sync(G_BUS_TYPE_SESSION, nullptr, &error); m_gdbusConnection = g_bus_get_sync(G_BUS_TYPE_SESSION, nullptr, &error);