Another fix for Qt <5.10

This commit is contained in:
Matthias Koefferlein 2022-05-24 12:54:52 +02:00
parent d6f320bc8b
commit 348faa64b3
1 changed files with 1 additions and 1 deletions

View File

@ -707,7 +707,7 @@ QImage
BitmapBuffer::to_image_copy () const
{
QImage img (m_width, m_height, QImage::Format_MonoLSB);
#if QT_VERSION < 0x050000
#if QT_VERSION < 0x051000
memcpy (img.bits (), data (), img.byteCount ());
#else
memcpy (img.bits (), data (), img.sizeInBytes ());