SnapmaticPicture: replace read() with readAll()

This commit is contained in:
Syping 2023-01-27 23:27:57 +01:00
parent 8d866cb44e
commit 3d87cebeac

View file

@ -366,8 +366,7 @@ bool SnapmaticPicture::preloadFile()
return false;
}
const qint64 fileMaxSize = (1024 * 1024 * 64);
const QByteArray fileData = picFile.read(fileMaxSize);
const QByteArray fileData = picFile.readAll();
bool ok = p_ragePhoto.load(fileData.constData(), fileData.size());
picFormat = p_ragePhoto.format();