Fixed: Compilation with Qt 4

This commit is contained in:
kervala 2016-01-06 16:01:53 +01:00
parent 7fc5e0fa1b
commit 1ddbd69af1

View file

@ -60,7 +60,11 @@ QVariant tiles_model::data(const QModelIndex &index, int role) const
{ {
CTile_Widget wiwi; CTile_Widget wiwi;
wiwi.initWidget(tiles.value(index.row()).getPixmap(), tiles.value(index.row()).getPixmapSide(), tiles.value(index.row()).getTileLabel()); 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()); QPixmap pixpix = wiwi.grab(wiwi.contentsRect());
#else
QPixmap::grabWidget(wiwi, wiwi.contentsRect());
#endif
return pixpix; return pixpix;
} }
else if (role == Qt::UserRole + 1) else if (role == Qt::UserRole + 1)