minor table layout bugfix
This commit is contained in:
parent
58e803c3e7
commit
00077565ab
3 changed files with 3 additions and 2 deletions
|
@ -254,6 +254,7 @@ void Player::rearrangeZones()
|
||||||
table->setPos(base);
|
table->setPos(base);
|
||||||
}
|
}
|
||||||
hand->updateOrientation();
|
hand->updateOrientation();
|
||||||
|
table->reorganizeCards();
|
||||||
updateBoundingRect();
|
updateBoundingRect();
|
||||||
rearrangeCounters();
|
rearrangeCounters();
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ void TableZone::paint(QPainter *painter, const QStyleOptionGraphicsItem */*optio
|
||||||
else
|
else
|
||||||
painter->fillRect(boundingRect(), QBrush(bgPixmap));
|
painter->fillRect(boundingRect(), QBrush(bgPixmap));
|
||||||
painter->setPen(QColor(255, 255, 255, 40));
|
painter->setPen(QColor(255, 255, 255, 40));
|
||||||
qreal separatorY = 3 * (CARD_HEIGHT + paddingY) - paddingY / 2;
|
qreal separatorY = 3 * (CARD_HEIGHT + paddingY) + boxLineWidth - paddingY / 2;
|
||||||
if (player->getMirrored())
|
if (player->getMirrored())
|
||||||
separatorY = height - separatorY;
|
separatorY = height - separatorY;
|
||||||
painter->drawLine(QPointF(0, separatorY), QPointF(width, separatorY));
|
painter->drawLine(QPointF(0, separatorY), QPointF(width, separatorY));
|
||||||
|
|
|
@ -137,7 +137,7 @@ void Server_Game::startGameIfReady()
|
||||||
query.exec();
|
query.exec();
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
setActivePlayer(0);
|
setActivePlayer(players.keys().first());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Server_Game::stopGameIfFinished()
|
void Server_Game::stopGameIfFinished()
|
||||||
|
|
Loading…
Reference in a new issue