aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmltest')
-rw-r--r--src/qmltest/quicktestresult.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qmltest/quicktestresult.cpp b/src/qmltest/quicktestresult.cpp
index 57ba65e588..9cecb0e2ff 100644
--- a/src/qmltest/quicktestresult.cpp
+++ b/src/qmltest/quicktestresult.cpp
@@ -105,9 +105,7 @@ public Q_SLOTS:
|| x * y >= m_image.width() * m_image.height())
return QVariant();
- const QRgb* pixel = reinterpret_cast<const QRgb*>(m_image.constScanLine(y));
- pixel += x;
- return QColor::fromRgba(*pixel);
+ return QColor::fromRgba(m_image.pixel(QPoint(x, y)));
}
bool equals(QuickTestImageObject *other) const