This commit is contained in:
doitux
2007-01-15 08:35:26 +00:00
parent 11062e4de1
commit d34c9b04a6
2 changed files with 11 additions and 5 deletions
+10 -4
View File
@@ -168,7 +168,7 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent, const char *name)
connect( pushButton_allin, SIGNAL( clicked() ), this, SLOT( myAllIn() ) );
connect ( horizontalSlider_speed, SIGNAL( valueChanged(int)), this, SLOT ( setGameSpeed(int) ) );
connect ( pushButton_break, SIGNAL( clicked()), this, SLOT ( breakAfterThisHand() ) ); // auch wieder starten!!!!
connect ( pushButton_break, SIGNAL( clicked()), this, SLOT ( breakButtonClicked() ) ); // auch wieder starten!!!!
}
@@ -1266,9 +1266,15 @@ void mainWindowImpl::setSpeeds() {
preflopNextPlayerSpeed = gameSpeed*10; // Zeit bis zwischen Aufhellen und Aktion im Preflop (etwas langsamer da nicht gerechnet wird. )
}
void mainWindowImpl::breakAfterThisHand() {
void mainWindowImpl::breakButtonClicked() {
pushButton_break->setDisabled(TRUE);
breakAfterActualHand=TRUE;
if (pushButton_break->text() == "Stop") {
pushButton_break->setDisabled(TRUE);
breakAfterActualHand=TRUE;
}
else {
pushButton_break->setText("Stop");
startNewHand();
}
}
+1 -1
View File
@@ -152,7 +152,7 @@ public slots:
void userWidgetsBackgroudColor();
void timerBlockerFalse();
void breakAfterThisHand();
void breakButtonClicked();
private: