mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 18:08:44 +00:00
Fixed: Compilation with Qt 4
--HG-- branch : develop
This commit is contained in:
parent
ecb47bc2dc
commit
ea5b041844
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;
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue