Make multimedia QML types available for the 5.3 import version.

At least one type needs to be registered with the 5.3 version number to
make it known to the QML engine.

Change-Id: Iacfe62650b4194fbb89135fef7cb148309227ce2
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
This commit is contained in:
Yoann Lopes
2014-06-03 16:50:56 +02:00
committed by The Qt Project
parent eadf1c8c41
commit b99a4b3025

View File

@@ -95,6 +95,11 @@ public:
qmlRegisterUncreatableType<QDeclarativeCameraImageProcessing>(uri, 5, 0, "CameraImageProcessing",
trUtf8("CameraImageProcessing is provided by Camera"));
// Make types available for the 5.3 version
// Adding "import QtMultimedia 5.3" in QML will fail unless at least one type is registered
// for that version.
qmlRegisterType<QSoundEffect>(uri, 5, 3, "SoundEffect");
qmlRegisterType<QDeclarativeMediaMetaData>();
}