forked from qt-creator/qt-creator
UnitTests: Fix printer
Fix recursion for QVariant printers. Change-Id: I1473a94102d0f4446e8033f4c1828735614cdfa3 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -49,6 +49,11 @@ std::ostream &operator<<(std::ostream &out, const QByteArray &byteArray)
|
|||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::ostream &operator<<(std::ostream &out, const QString &text)
|
||||||
|
{
|
||||||
|
return out << text.toUtf8();
|
||||||
|
}
|
||||||
|
|
||||||
std::ostream &operator<<(std::ostream &out, const QVariant &variant)
|
std::ostream &operator<<(std::ostream &out, const QVariant &variant)
|
||||||
{
|
{
|
||||||
QString output;
|
QString output;
|
||||||
@@ -59,11 +64,6 @@ std::ostream &operator<<(std::ostream &out, const QVariant &variant)
|
|||||||
return out << output;
|
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)
|
std::ostream &operator<<(std::ostream &out, const QTextCharFormat &format)
|
||||||
{
|
{
|
||||||
out << "("
|
out << "("
|
||||||
|
Reference in New Issue
Block a user