Commit e4ae5848 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port away from deprecated QImage::byteCount()

parent 2da6000b
......@@ -364,7 +364,7 @@ bool Document::hasAlphaChannel() const
int Document::memoryUsage() const
{
// FIXME: Take undo stack into account
int usage = d->mImage.byteCount();
int usage = d->mImage.sizeInBytes();
usage += rawData().length();
return usage;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment