Skip to content

Instantly share code, notes, and snippets.

@jturcotte
Created March 7, 2012 19:50
Show Gist options
  • Save jturcotte/1995575 to your computer and use it in GitHub Desktop.
Save jturcotte/1995575 to your computer and use it in GitHub Desktop.
QDebug operator<<(QDebug dbg, const TransformationMatrix &m)
QDebug operator<<(QDebug dbg, const TransformationMatrix &m)
{
dbg.nospace() << "TransformationMatrix(" << endl
<< qSetFieldWidth(10)
<< m.m11() << m.m21() << m.m31() << m.m41() << endl
<< m.m12() << m.m22() << m.m32() << m.m42() << endl
<< m.m13() << m.m23() << m.m33() << m.m43() << endl
<< m.m14() << m.m24() << m.m34() << m.m44() << endl
<< qSetFieldWidth(0) << ')';
return dbg.space();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment