Fix build with Qt < 5.6

This commit is contained in:
David Rosca 2016-02-28 10:36:57 +01:00
parent 526915895b
commit 3c8cb82d44

View File

@ -34,10 +34,9 @@
static bool imageIsEmpty(const QImage &img)
{
const QColor empty = QColor::fromRgba(0);
for (int i = 0; i < img.width(); ++i) {
for (int j = 0; j < img.height(); ++j) {
if (img.pixelColor(i, j) != empty) {
if (img.pixel(i, j) != 0) {
return false;
}
}