From 9db5cdb151f053d2bb7b8e2e83f6341631fa0c33 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 6 Jan 2016 16:01:53 +0100 Subject: [PATCH] Fixed: Compilation with Qt 4 --- code/nel/tools/3d/tile_edit_qt/tiles_model.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/nel/tools/3d/tile_edit_qt/tiles_model.cpp b/code/nel/tools/3d/tile_edit_qt/tiles_model.cpp index cbe6e05a1..d05495eb7 100644 --- a/code/nel/tools/3d/tile_edit_qt/tiles_model.cpp +++ b/code/nel/tools/3d/tile_edit_qt/tiles_model.cpp @@ -60,7 +60,11 @@ QVariant tiles_model::data(const QModelIndex &index, int role) const { CTile_Widget wiwi; wiwi.initWidget(tiles.value(index.row()).getPixmap(), tiles.value(index.row()).getPixmapSide(), tiles.value(index.row()).getTileLabel()); +#ifdef USE_QT5 QPixmap pixpix = wiwi.grab(wiwi.contentsRect()); +#else + QPixmap::grabWidget(wiwi, wiwi.contentsRect()); +#endif return pixpix; } else if (role == Qt::UserRole + 1)