running astyle

This commit is contained in:
floty
2011-11-02 18:27:15 +00:00
parent 3352a199fc
commit 6fbb5c9841
4 changed files with 11 additions and 7 deletions
+1 -2
View File
@@ -3533,8 +3533,7 @@ void gameTableImpl::refreshCardsChance(GameState bero)
if(humanPlayer->getMyAction() == PLAYER_ACTION_FOLD) {
label_chance->refreshChance(CardsValue::calcCardsChance(bero, holeCards, boardCards), true);
}
else {
} else {
label_chance->refreshChance(CardsValue::calcCardsChance(bero, holeCards, boardCards), false);
}
} else {
+5 -2
View File
@@ -184,8 +184,11 @@ void MyChanceLabel::paintEvent(QPaintEvent * /*event*/)
linearGrad.setColorAt(1, Qt::red);
painter.setBrush(linearGrad);
if(myFoldState) { painter.setOpacity(0.4); }
else { painter.setOpacity(1.0); }
if(myFoldState) {
painter.setOpacity(0.4);
} else {
painter.setOpacity(1.0);
}
if(RFChance[1] != 0) painter.drawRect(89,3,(108*RFChance[0])/100,7);
if(SFChance[1] != 0) painter.drawRect(89,16,(108*SFChance[0])/100,7);
+1 -1
View File
@@ -336,7 +336,7 @@ void GuiWrapper::SignalNetClientSelfJoined(unsigned playerId, const string &play
}
void GuiWrapper::SignalNetClientPlayerJoined(unsigned playerId, const string &playerName, bool isGameAdmin)
{
myStartWindow->signalNetClientPlayerJoined(playerId, QString::fromUtf8(playerName.c_str()), isGameAdmin);
myStartWindow->signalNetClientPlayerJoined(playerId, QString::fromUtf8(playerName.c_str()), isGameAdmin);
if (!playerName.empty() && playerName[0] != '#' && myW->isVisible()) {
QString tmpName(QString::fromUtf8(playerName.c_str()));
myGuiLog->signalLogPlayerJoinedMsg(tmpName);