Commit 7556af0c authored by Noah Davis's avatar Noah Davis 🌵
Browse files

Fix QImage::byteCount() deprecation warning by switching to sizeInBytes()

parent 0d63cfaf
...@@ -457,7 +457,7 @@ namespace Breeze ...@@ -457,7 +457,7 @@ namespace Breeze
// create image from QPixmap and assign to pixmap // create image from QPixmap and assign to pixmap
QImage image( source.toImage() ); QImage image( source.toImage() );
xcb_put_image( Helper::connection(), XCB_IMAGE_FORMAT_Z_PIXMAP, pixmap, _gc, image.width(), image.height(), 0, 0, 0, 32, image.byteCount(), image.constBits()); xcb_put_image( Helper::connection(), XCB_IMAGE_FORMAT_Z_PIXMAP, pixmap, _gc, image.width(), image.height(), 0, 0, 0, 32, image.sizeInBytes(), image.constBits());
return pixmap; return pixmap;
......
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