From 8b7331642f7d337ccd250385fac76f47ccdc192a Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Sat, 31 May 2025 15:32:05 +0200 Subject: [PATCH] frontend: Fix metatype declaration for scenes' SignalContainer To be used as a QVariant, stream operators need to be provided as the meta type will otherwise be considered "incomplete". These were implemented before the frontend reorganization but not migrated as part of it. --- frontend/widgets/OBSBasic_Scenes.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/widgets/OBSBasic_Scenes.cpp b/frontend/widgets/OBSBasic_Scenes.cpp index 5ffe1c317..4976c7b98 100644 --- a/frontend/widgets/OBSBasic_Scenes.cpp +++ b/frontend/widgets/OBSBasic_Scenes.cpp @@ -37,6 +37,19 @@ template struct SignalContainer { OBSRef ref; vector> handlers; }; + +QDataStream &operator<<(QDataStream &out, const SignalContainer &v) +{ + out << v.ref; + return out; +} + +QDataStream &operator>>(QDataStream &in, SignalContainer &v) +{ + in >> v.ref; + return in; +} + } // namespace Q_DECLARE_METATYPE(obs_order_movement);