Use Q_CONSTRUCTOR_FUNCTION macro to register multimedia meta types.
Task-number: QTBUG-39131 Change-Id: I2493c9e3e6f0065d0441a74ff240d7d91fbe059c Reviewed-by: Christian Stromme <christian.stromme@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
5a0e49369d
commit
efa4628e74
@@ -47,18 +47,14 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace
|
||||
|
||||
static void qRegisterAudioBufferMetaTypes()
|
||||
{
|
||||
class QAudioBufferPrivateRegisterMetaTypes
|
||||
{
|
||||
public:
|
||||
QAudioBufferPrivateRegisterMetaTypes()
|
||||
{
|
||||
qRegisterMetaType<QAudioBuffer>();
|
||||
}
|
||||
} _registerMetaTypes;
|
||||
qRegisterMetaType<QAudioBuffer>();
|
||||
}
|
||||
|
||||
Q_CONSTRUCTOR_FUNCTION(qRegisterAudioBufferMetaTypes)
|
||||
|
||||
|
||||
class QAudioBufferPrivate : public QSharedData
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user