Fix failing QMetaObject::invokeMethod call

This commit is contained in:
Ryan Huffman 2015-01-27 13:59:46 -08:00
parent e290fa2e7f
commit 7ececd793a

View file

@ -490,7 +490,7 @@ void ImageReader::run() {
averageColor.setRgb(redTotal / imageArea, greenTotal / imageArea, blueTotal / imageArea);
}
QMetaObject::invokeMethod(texture.data(), "setImage", Q_ARG(const QImage&, image), Q_ARG(bool, false),
Q_ARG(const QColor&, averageColor));
Q_ARG(const QColor&, averageColor), Q_ARG(int, originalWidth), Q_ARG(int, originalHeight));
return;
}
if (image.format() != QImage::Format_ARGB32) {