Fixed: Compilation with Qt 4
This commit is contained in:
parent
7fc5e0fa1b
commit
1ddbd69af1
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue