Almost full Qt 4.6 compatibility. Sorry it took so long.
This commit is contained in:
parent
89fe7d2d69
commit
ba8d40211c
1 changed files with 2 additions and 3 deletions
|
@ -34,11 +34,10 @@ void AbstractCardItem::pixmapUpdated()
|
|||
update();
|
||||
}
|
||||
|
||||
void AbstractCardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget */*widget*/)
|
||||
void AbstractCardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem */*option*/, QWidget */*widget*/)
|
||||
{
|
||||
painter->save();
|
||||
|
||||
QSizeF translatedSize = option->matrix.mapRect(boundingRect()).size();
|
||||
QSizeF translatedSize = painter->combinedTransform().mapRect(boundingRect()).size();
|
||||
if (tapped)
|
||||
translatedSize.transpose();
|
||||
QPixmap *translatedPixmap = info->getPixmap(translatedSize.toSize());
|
||||
|
|
Loading…
Reference in a new issue