Commit af4110de authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa
Browse files

fixed qt4 compilation

parent 5bd591bb
......@@ -457,7 +457,13 @@ namespace Breeze
// create image from QPixmap and assign to pixmap
QImage image( source.toImage() );
#if QT_VERSION >= 0x051000
xcb_put_image( Helper::connection(), XCB_IMAGE_FORMAT_Z_PIXMAP, pixmap, _gc, image.width(), image.height(), 0, 0, 0, 32, image.sizeInBytes(), image.constBits());
#else
xcb_put_image( Helper::connection(), XCB_IMAGE_FORMAT_Z_PIXMAP, pixmap, _gc, image.width(), image.height(), 0, 0, 0, 32, image.byteCount(), image.constBits());
#endif
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