Fix Qt6 builds after dev -> wip/qt6 merge
Change-Id: I56b9d3abdbc6663a2d514f12aa20f2f574042bc1 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
19138e6d99
commit
c0987d3923
|
@ -38,6 +38,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <QtQml/qqmlextensionplugin.h>
|
||||
#include <QtQml/QQmlEngine>
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
#include <QtQml/private/qqmlengine_p.h>
|
||||
|
|
|
@ -2329,7 +2329,7 @@ void Renderer::uploadBatch(Batch *b)
|
|||
iDump << " -- Index Data, count:" << b->indexCount;
|
||||
for (int i=0; i<b->indexCount; ++i) {
|
||||
if ((i % 24) == 0)
|
||||
iDump << endl << " --- ";
|
||||
iDump << Qt::endl << " --- ";
|
||||
iDump << id[i];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -195,7 +195,7 @@ static bool fuzzyCompareColor(QRgb x, QRgb y, QByteArray *errorMessage)
|
|||
enum { fuzz = 4 };
|
||||
if (qAbs(qRed(x) - qRed(y)) >= fuzz || qAbs(qGreen(x) - qGreen(y)) >= fuzz || qAbs(qBlue(x) - qBlue(y)) >= fuzz) {
|
||||
QString s;
|
||||
QDebug(&s).nospace() << hex << "Color mismatch 0x" << x << " 0x" << y << dec << " (fuzz=" << fuzz << ").";
|
||||
QDebug(&s).nospace() << Qt::hex << "Color mismatch 0x" << x << " 0x" << y << Qt::dec << " (fuzz=" << fuzz << ").";
|
||||
*errorMessage = s.toLocal8Bit();
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ bool QQuickVisualTestUtil::compareImages(const QImage &ia, const QImage &ib, QSt
|
|||
|| qAbs(qRed(a) - qRed(b)) > tolerance
|
||||
|| qAbs(qRed(a) - qRed(b)) > tolerance) {
|
||||
QDebug(errorMessage) << "Mismatch at:" << x << y << ':'
|
||||
<< hex << showbase << a << b;
|
||||
<< Qt::hex << Qt::showbase << a << b;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue