From 5ca20dd233e60b38635d7b4edf3a2b6a60974e7d Mon Sep 17 00:00:00 2001 From: lbartoletti Date: Tue, 22 Oct 2019 18:46:26 +0200 Subject: fix warning: 'byteCount' is deprecated: Use sizeInBytes --- src-qt5/core/libLumina/LuminaX11.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src-qt5/core/libLumina/LuminaX11.cpp') diff --git a/src-qt5/core/libLumina/LuminaX11.cpp b/src-qt5/core/libLumina/LuminaX11.cpp index ee4ed5b7..1df5a9f0 100644 --- a/src-qt5/core/libLumina/LuminaX11.cpp +++ b/src-qt5/core/libLumina/LuminaX11.cpp @@ -498,7 +498,7 @@ QIcon LXCB::WindowIcon(WId win){ QImage image(iter.width, iter.height, QImage::Format_ARGB32); //initial setup uint* dat = iter.data; //dat+=2; //remember the first 2 element offset - for(int i=0; itoImage().convertToFormat(QImage::Format_ARGB32); xcb_image_t *image = xcb_image_create(pix->width(), pix->height(), XCB_IMAGE_FORMAT_XY_PIXMAP, 32, qimage.depth(), 32, 32, XCB_IMAGE_ORDER_LSB_FIRST, XCB_IMAGE_ORDER_LSB_FIRST, - 0, qimage.byteCount(), qimage.bits()); + 0, qimage.sizeInBytes(), qimage.bits()); //Now paint on the root window -- cgit