mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
small changes
This commit is contained in:
parent
47eadb6f86
commit
c3fb56581d
12 changed files with 23 additions and 22 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue