Gui fixes.
This commit is contained in:
@@ -472,6 +472,9 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
|
||||
lineEdit_ChatInput->installEventFilter(this);
|
||||
this->installEventFilter(this);
|
||||
|
||||
//set WindowTitle dynamically
|
||||
this->setWindowTitle(QString(tr("PokerTH %1 - The Open-Source Texas Holdem Engine").arg(POKERTH_BETA_RELEASE_STRING)));
|
||||
|
||||
//Connects
|
||||
connect(dealFlopCards0Timer, SIGNAL(timeout()), this, SLOT( dealFlopCards1() ));
|
||||
connect(dealFlopCards1Timer, SIGNAL(timeout()), this, SLOT( dealFlopCards2() ));
|
||||
@@ -1025,6 +1028,28 @@ void mainWindowImpl::callSettingsDialog() {
|
||||
flipside = new QPixmap(myAppDataPath +"gfx/cards/default/flipside.png");
|
||||
}
|
||||
|
||||
//Check for anti-peek mode
|
||||
if(mySession->getCurrentGame()) {
|
||||
QPixmap tempCardsPixmapArray[2];
|
||||
int tempCardsIntArray[2];
|
||||
|
||||
mySession->getCurrentGame()->getSeatsList()->front()->getMyCards(tempCardsIntArray);
|
||||
if(myConfig->readConfigInt("AntiPeekMode")) {
|
||||
holeCardsArray[0][0]->setPixmap(*flipside, TRUE);
|
||||
tempCardsPixmapArray[0].load(myAppDataPath +"gfx/cards/default/"+QString::number(tempCardsIntArray[0], 10)+".png");
|
||||
holeCardsArray[0][0]->setFrontPixmap(tempCardsPixmapArray[0]);
|
||||
holeCardsArray[0][1]->setPixmap(*flipside, TRUE);
|
||||
tempCardsPixmapArray[1].load(myAppDataPath +"gfx/cards/default/"+QString::number(tempCardsIntArray[1], 10)+".png");
|
||||
holeCardsArray[0][1]->setFrontPixmap(tempCardsPixmapArray[1]);
|
||||
}
|
||||
else {
|
||||
tempCardsPixmapArray[0].load(myAppDataPath +"gfx/cards/default/"+QString::number(tempCardsIntArray[0], 10)+".png");
|
||||
holeCardsArray[0][0]->setPixmap(tempCardsPixmapArray[0],FALSE);
|
||||
tempCardsPixmapArray[1].load(myAppDataPath +"gfx/cards/default/"+QString::number(tempCardsIntArray[1], 10)+".png");
|
||||
holeCardsArray[0][1]->setPixmap(tempCardsPixmapArray[1],FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
if(mySession->getCurrentGame()) {
|
||||
//blind buttons refresh
|
||||
refreshButton();
|
||||
|
||||
Reference in New Issue
Block a user