From: Dmytro Poplavskiy Date: Thu, 3 May 2012 07:48:13 +0000 (+1000) Subject: Declare and register metatypes for media encoder settings classes X-Git-Tag: upstream/5.2.95+rc1~403 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a2de6d2fae4e1afeef200d88e617154558ecc34;p=platform%2Fupstream%2Fqtmultimedia.git Declare and register metatypes for media encoder settings classes Change-Id: Ib3a42409045fe55c7a410b5ec52bd284f3475417 Reviewed-by: Mithra Pattison Reviewed-by: Jonas Rabbe --- diff --git a/src/multimedia/recording/qmediaencodersettings.cpp b/src/multimedia/recording/qmediaencodersettings.cpp index 49621eb..309ddef 100644 --- a/src/multimedia/recording/qmediaencodersettings.cpp +++ b/src/multimedia/recording/qmediaencodersettings.cpp @@ -43,6 +43,20 @@ QT_BEGIN_NAMESPACE +namespace +{ +class QMediaEncoderSettingsPrivateRegisterMetaTypes +{ +public: + QMediaEncoderSettingsPrivateRegisterMetaTypes() + { + qRegisterMetaType(); + qRegisterMetaType(); + qRegisterMetaType(); + } +} _registerMetaTypes; +} + class QAudioEncoderSettingsPrivate : public QSharedData { public: diff --git a/src/multimedia/recording/qmediaencodersettings.h b/src/multimedia/recording/qmediaencodersettings.h index 5b3285b..c2f2f1d 100644 --- a/src/multimedia/recording/qmediaencodersettings.h +++ b/src/multimedia/recording/qmediaencodersettings.h @@ -162,6 +162,10 @@ private: QT_END_NAMESPACE +Q_DECLARE_METATYPE(QAudioEncoderSettings) +Q_DECLARE_METATYPE(QVideoEncoderSettings) +Q_DECLARE_METATYPE(QImageEncoderSettings) + QT_END_HEADER