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:
parent
34eb24508b
commit
8b7331642f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user