Almost full Qt 4.6 compatibility. Sorry it took so long.

This commit is contained in:
Max-Wilhelm Bruker 2010-02-24 18:21:48 +01:00
parent 89fe7d2d69
commit ba8d40211c

View file

@ -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());