Commit ba8d4021 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

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

parent 89fe7d2d
......@@ -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());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment