Commit a39d0e6f authored by Marco Bubke's avatar Marco Bubke Committed by Tim Jenssen
Browse files

UnitTests: Fix printer



Fix recursion for QVariant printers.

Change-Id: I1473a94102d0f4446e8033f4c1828735614cdfa3
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 2b467e8e
......@@ -49,6 +49,11 @@ std::ostream &operator<<(std::ostream &out, const QByteArray &byteArray)
return out;
}
std::ostream &operator<<(std::ostream &out, const QString &text)
{
return out << text.toUtf8();
}
std::ostream &operator<<(std::ostream &out, const QVariant &variant)
{
QString output;
......@@ -59,11 +64,6 @@ std::ostream &operator<<(std::ostream &out, const QVariant &variant)
return out << output;
}
std::ostream &operator<<(std::ostream &out, const QString &text)
{
return out << text.toUtf8();
}
std::ostream &operator<<(std::ostream &out, const QTextCharFormat &format)
{
out << "("
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment