summaryrefslogtreecommitdiff
path: root/src/multimedia/controls/qcameraimageprocessingcontrol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/multimedia/controls/qcameraimageprocessingcontrol.cpp')
-rw-r--r--src/multimedia/controls/qcameraimageprocessingcontrol.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/multimedia/controls/qcameraimageprocessingcontrol.cpp b/src/multimedia/controls/qcameraimageprocessingcontrol.cpp
index f9cb8c86f..944b09643 100644
--- a/src/multimedia/controls/qcameraimageprocessingcontrol.cpp
+++ b/src/multimedia/controls/qcameraimageprocessingcontrol.cpp
@@ -44,18 +44,13 @@
QT_BEGIN_NAMESPACE
-namespace
+static void qRegisterCameraImageProcessingControlMetaTypes()
{
- class QCameraImageProcessingControlPrivateRegisterMetaTypes
- {
- public:
- QCameraImageProcessingControlPrivateRegisterMetaTypes()
- {
- qRegisterMetaType<QCameraImageProcessingControl::ProcessingParameter>();
- }
- } _registerMetaTypes;
+ qRegisterMetaType<QCameraImageProcessingControl::ProcessingParameter>();
}
+Q_CONSTRUCTOR_FUNCTION(qRegisterCameraImageProcessingControlMetaTypes)
+
/*!
\class QCameraImageProcessingControl
\inmodule QtMultimedia