obs-studio/shared/qt/wrappers
PatTheMav 059fd6210c frontend: Fix visibility issues of meta type stream operators
For custom types to become usable as QVariants they not only need to
be declared as meta types, but also need to have appropriate stream
operators declared.

These declarations (both of the meta type itself, which provides a
static meta type ID getter via the macro, as well as the operators)
need to be visible to the compiler in any compilation unit where they
might be used in their QVariant form, otherwise the templates will
be incomplete.

A blanket include of "qt-wrappers.hpp" in "OBSBasic.hpp" is not the
most subtle fix, but it's necessary to ensure that the meta types
are always "complete". Putting both declarations in the qt-wrappers
header (instead of splitting them up) ensures that (as the classes
themselves are declared in "obs.hpp", which is included by
"qt-wrappers.hpp", and thus qt-wrappers can provide a complete class.
2025-06-16 14:44:27 -04:00
..
CMakeLists.txt cmake: Update supported CMake version range to 3.28 and 3.30 2024-09-13 14:42:32 -04:00
qt-wrappers.cpp clang-format: Increase column limit from 80 to 120 2024-10-04 18:19:27 -04:00
qt-wrappers.hpp frontend: Fix visibility issues of meta type stream operators 2025-06-16 14:44:27 -04:00