Fixed warning about unused parameters in QZXing::decodeSubImageQM when QZXING_QML is not defined

This commit is contained in:
Alexander Stillich 2018-11-02 16:46:36 +01:00
parent b1bf4dfb01
commit fac57028e4
1 changed files with 5 additions and 0 deletions

View File

@ -487,6 +487,11 @@ QString QZXing::decodeSubImageQML(const QUrl &imageUrl,
img = img.copy(offsetX, offsetY, width, height);
return decodeImage(img);
#else
Q_UNUSED(imageUrl);
Q_UNUSED(offsetX);
Q_UNUSED(offsetY);
Q_UNUSED(width);
Q_UNUSED(height);
return decodeImage(QImage());
#endif //QZXING_QML
}