Remove qRegisterMetaTypeStreamOperators call for Qt6 builds

This commit is contained in:
Alexander Lohnau 2023-04-16 10:06:13 +02:00
parent 719305550f
commit a5a375d7d9

View file

@ -35,7 +35,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);