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();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AbstractCardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget */*widget*/)
|
void AbstractCardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem */*option*/, QWidget */*widget*/)
|
||||||
{
|
{
|
||||||
painter->save();
|
painter->save();
|
||||||
|
QSizeF translatedSize = painter->combinedTransform().mapRect(boundingRect()).size();
|
||||||
QSizeF translatedSize = option->matrix.mapRect(boundingRect()).size();
|
|
||||||
if (tapped)
|
if (tapped)
|
||||||
translatedSize.transpose();
|
translatedSize.transpose();
|
||||||
QPixmap *translatedPixmap = info->getPixmap(translatedSize.toSize());
|
QPixmap *translatedPixmap = info->getPixmap(translatedSize.toSize());
|
||||||
|
|
Loading…
Reference in a new issue