mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-31 02:13:51 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user