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.
This commit is contained in:
PatTheMav 2025-05-31 15:32:05 +02:00 committed by Ryan Foster
parent 34eb24508b
commit 8b7331642f

View File

@ -37,6 +37,19 @@ template<typename OBSRef> struct SignalContainer {
OBSRef ref;
vector<shared_ptr<OBSSignal>> handlers;
};
QDataStream &operator<<(QDataStream &out, const SignalContainer<OBSScene> &v)
{
out << v.ref;
return out;
}
QDataStream &operator>>(QDataStream &in, SignalContainer<OBSScene> &v)
{
in >> v.ref;
return in;
}
} // namespace
Q_DECLARE_METATYPE(obs_order_movement);