small changes

This commit is contained in:
Max-Wilhelm Bruker 2009-07-01 01:05:52 +02:00
parent 47eadb6f86
commit c3fb56581d
12 changed files with 23 additions and 22 deletions

View file

@ -20,6 +20,7 @@ QRectF PileZone::boundingRect() const
void PileZone::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
qDebug("PileZone::paint");
if (!cards->isEmpty()) {
painter->save();
cards->at(0)->paint(painter, option, widget);
@ -47,7 +48,7 @@ void PileZone::handleDropEvent(int cardId, CardZone *startZone, const QPoint &/*
void PileZone::reorganizeCards()
{
qDebug(QString("PileZone: reorganize, x=%1, y=%2, w=%3, h=%4").arg(boundingRect().x()).arg(boundingRect().y()).arg(boundingRect().width()).arg(boundingRect().height()).toLatin1());
update(boundingRect());
update();
}
void PileZone::mousePressEvent(QGraphicsSceneMouseEvent *event)