Declare more metatypes and debug operators.
Nearly all of the multimedia metatypes used in the auto tests are now declared properly, and a large number of the types have debug operators as well. Removed the superfluous decls as well. Change-Id: I42cfe37562db0c71d9811b4577fc326a3326ccc9 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
6a3a442ea6
commit
7dfb883df6
@@ -219,6 +219,20 @@ QDebug operator<<(QDebug dbg, QAbstractVideoBuffer::HandleType type)
|
||||
return dbg.nospace() << QString(QLatin1String("UserHandle(%1)")).arg(int(type)).toAscii().constData();
|
||||
}
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug dbg, QAbstractVideoBuffer::MapMode mode)
|
||||
{
|
||||
switch (mode) {
|
||||
case QAbstractVideoBuffer::ReadOnly:
|
||||
return dbg.nospace() << "ReadOnly";
|
||||
case QAbstractVideoBuffer::ReadWrite:
|
||||
return dbg.nospace() << "ReadWrite";
|
||||
case QAbstractVideoBuffer::WriteOnly:
|
||||
return dbg.nospace() << "WriteOnly";
|
||||
default:
|
||||
return dbg.nospace() << "NotMapped";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user