QImage::byteCount -> QImage::sizeInByes

This commit is contained in:
Albert Astals Cid
2019-07-04 22:26:53 +02:00
parent bff22e2a76
commit 75ef81a109
3 changed files with 6 additions and 6 deletions

View File

@ -116,8 +116,8 @@ int main(int argc, char **argv)
}
img = img.convertToFormat(qformat);
}
qint64 written = output.write(reinterpret_cast<const char *>(img.bits()), img.byteCount());
if (written != img.byteCount()) {
qint64 written = output.write(reinterpret_cast<const char *>(img.bits()), img.sizeInBytes());
if (written != img.sizeInBytes()) {
QTextStream(stderr) << "Could not write image data to " << files.at(1)
<< ":" << output.errorString() << "\n";
return 5;