mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-12 12:14:48 +00:00
Fixed: Compilation with Qt 4
This commit is contained in:
parent
7e004eeb41
commit
9db5cdb151
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