small gui fixes
This commit is contained in:
@@ -2025,14 +2025,16 @@ void mainWindowImpl::disableMyButtons() {
|
||||
|
||||
HandInterface *currentHand = mySession->getCurrentGame()->getCurrentHand();
|
||||
|
||||
clearMyButtons();
|
||||
|
||||
//clear userWidgets
|
||||
pushButton_AllIn->setDisabled(TRUE);
|
||||
horizontalSlider_bet->setDisabled(TRUE);
|
||||
lineEdit_betValue->setDisabled(TRUE);
|
||||
horizontalSlider_bet->setMinimum(0);
|
||||
horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
|
||||
lineEdit_betValue->clear();
|
||||
horizontalSlider_bet->setValue(0);
|
||||
pushButton_AllIn->setDisabled(TRUE);
|
||||
horizontalSlider_bet->setDisabled(TRUE);
|
||||
lineEdit_betValue->setDisabled(TRUE);
|
||||
|
||||
#ifdef _WIN32
|
||||
QString humanPlayerButtonFontSize = "13";
|
||||
@@ -3711,6 +3713,8 @@ void mainWindowImpl::changeLineEditBetValue(int value) {
|
||||
|
||||
void mainWindowImpl::lineEditBetValueChanged(QString valueString) {
|
||||
|
||||
if(horizontalSlider_bet->isEnabled()) {
|
||||
|
||||
bool ok;
|
||||
int betValue = QString(valueString).toInt(&ok, 10);
|
||||
QString betRaise = pushButton_BetRaise->text().section(" ",0 ,0);
|
||||
@@ -3733,6 +3737,7 @@ void mainWindowImpl::lineEditBetValueChanged(QString valueString) {
|
||||
betSliderChangedByInput = TRUE;
|
||||
horizontalSlider_bet->setValue(horizontalSlider_bet->minimum());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void mainWindowImpl::leaveCurrentNetworkGame() {
|
||||
|
||||
@@ -44,6 +44,7 @@ settingsDialogImpl::settingsDialogImpl(QWidget *parent, ConfigFile *c, selectAva
|
||||
|
||||
if (myConfig->readConfigInt("CLA_NoWriteAccess")) { groupBox_logOnOff->setDisabled(TRUE); }
|
||||
|
||||
comboBox_switchLanguage->addItem(tr("Bulgarian"),"bg");
|
||||
comboBox_switchLanguage->addItem(tr("Dutch"),"nl");
|
||||
comboBox_switchLanguage->addItem(tr("English"),"en");
|
||||
comboBox_switchLanguage->addItem(tr("French"),"fr");
|
||||
|
||||
Reference in New Issue
Block a user