SnapmaticPicture: replace read() with readAll()
This commit is contained in:
parent
8d866cb44e
commit
3d87cebeac
1 changed files with 1 additions and 2 deletions
|
@ -366,8 +366,7 @@ bool SnapmaticPicture::preloadFile()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const qint64 fileMaxSize = (1024 * 1024 * 64);
|
const QByteArray fileData = picFile.readAll();
|
||||||
const QByteArray fileData = picFile.read(fileMaxSize);
|
|
||||||
|
|
||||||
bool ok = p_ragePhoto.load(fileData.constData(), fileData.size());
|
bool ok = p_ragePhoto.load(fileData.constData(), fileData.size());
|
||||||
picFormat = p_ragePhoto.format();
|
picFormat = p_ragePhoto.format();
|
||||||
|
|
Loading…
Reference in a new issue