Gui fixes.
This commit is contained in:
@@ -70,7 +70,7 @@ Log::Log(mainWindowImpl* w, ConfigFile *c) : myW(w), myConfig(c), myLogDir(0), m
|
||||
stream << "</head>\n";
|
||||
stream << "<body style=\"font-size:smaller\">\n";
|
||||
stream << "<img src='logo.png'>\n";
|
||||
stream << "<h3><b>Log-File for PokerTH 0.6-beta Session started on "+QDate::currentDate().toString("yyyy-MM-dd")+" at "+QTime::currentTime().toString("hh:mm:ss")+"</b></h3>\n";
|
||||
stream << QString("<h3><b>Log-File for PokerTH %1 Session started on ").arg(POKERTH_BETA_RELEASE_STRING)+QDate::currentDate().toString("yyyy-MM-dd")+" at "+QTime::currentTime().toString("hh:mm:ss")+"</b></h3>\n";
|
||||
myLogFile->close();
|
||||
|
||||
//Zu alte Dateien löschen!!!
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -274,7 +274,7 @@ void StartSplash::paintEvent(QPaintEvent * /*event*/) {
|
||||
painter.setOpacity(1.0);
|
||||
painter.setFont(versionFont);
|
||||
painter.setPen(QColor(102,153,0));
|
||||
painter.drawText(295,230,100,20,4,"Version 0.6-beta");
|
||||
painter.drawText(295,230,100,20,4,QString("Version %1").arg(POKERTH_BETA_RELEASE_STRING));
|
||||
painter.setOpacity(opacity);
|
||||
|
||||
if(frameNo >=190) {
|
||||
|
||||
Reference in New Issue
Block a user