summaryrefslogtreecommitdiff
path: root/src/multimedia/video/qvideosurfaceformat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/multimedia/video/qvideosurfaceformat.cpp')
-rw-r--r--src/multimedia/video/qvideosurfaceformat.cpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/multimedia/video/qvideosurfaceformat.cpp b/src/multimedia/video/qvideosurfaceformat.cpp
index 5806f3b9b..56814f478 100644
--- a/src/multimedia/video/qvideosurfaceformat.cpp
+++ b/src/multimedia/video/qvideosurfaceformat.cpp
@@ -49,20 +49,15 @@
QT_BEGIN_NAMESPACE
-namespace
+static void qRegisterVideoSurfaceFormatMetaTypes()
{
- class QVideoSurfaceFormatPrivateRegisterMetaTypes
- {
- public:
- QVideoSurfaceFormatPrivateRegisterMetaTypes()
- {
- qRegisterMetaType<QVideoSurfaceFormat>();
- qRegisterMetaType<QVideoSurfaceFormat::Direction>();
- qRegisterMetaType<QVideoSurfaceFormat::YCbCrColorSpace>();
- }
- } _registerMetaTypes;
+ qRegisterMetaType<QVideoSurfaceFormat>();
+ qRegisterMetaType<QVideoSurfaceFormat::Direction>();
+ qRegisterMetaType<QVideoSurfaceFormat::YCbCrColorSpace>();
}
+Q_CONSTRUCTOR_FUNCTION(qRegisterVideoSurfaceFormatMetaTypes)
+
class QVideoSurfaceFormatPrivate : public QSharedData
{