diff --git a/src/testlib/qtestdata.h b/src/testlib/qtestdata.h index 22dae76167..8849b15ddb 100644 --- a/src/testlib/qtestdata.h +++ b/src/testlib/qtestdata.h @@ -89,6 +89,14 @@ inline QTestData &operator<<(QTestData &data, const char * value) return data; } +#ifdef QT_USE_QSTRINGBUILDER +template +inline QTestData &operator<<(QTestData &data, const QStringBuilder &value) +{ + return data << typename QConcatenable >::ConvertTo(value); +} +#endif + QT_END_NAMESPACE QT_END_HEADER