The error was:
tests/auto/integration/qdeclarativevideooutput/tst_qdeclarativevideooutput.cpp:113:62: required from here
qmetatype.h:637:5: error: static assertion failed: Type is not registered, please use Q_DECLARE_METATYPE macro to make it know to Qt's meta-object system
Change-Id: Id4e29803de646cbad0d401b1fe0e0b38e458d12f
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
{
Q_OBJECT
public:
- tst_QDeclarativeVideoOutput()
- : m_mappingComponent(0)
- , m_mappingOutput(0)
- , m_mappingSurface(0)
- {
- qRegisterMetaType<QDeclarativeVideoOutput::FillMode>();
- }
+ tst_QDeclarativeVideoOutput();
~tst_QDeclarativeVideoOutput()
{
Q_DECLARE_METATYPE(QDeclarativeVideoOutput::FillMode)
+tst_QDeclarativeVideoOutput::tst_QDeclarativeVideoOutput()
+ : m_mappingComponent(0)
+ , m_mappingOutput(0)
+ , m_mappingSurface(0)
+{
+ qRegisterMetaType<QDeclarativeVideoOutput::FillMode>();
+}
+
void tst_QDeclarativeVideoOutput::fillMode()
{
QQmlComponent component(&m_engine);
void readPerByte();
};
+Q_DECLARE_METATYPE(tst_QWaveDecoder::Corruption)
+
void tst_QWaveDecoder::init()
{
}
stream.close();
}
-Q_DECLARE_METATYPE(tst_QWaveDecoder::Corruption)
-
QTEST_MAIN(tst_QWaveDecoder)
#include "tst_qwavedecoder.moc"