This commit is contained in:
doitux
2008-12-04 14:15:41 +00:00
parent 6604263057
commit 5bf83898d2
3 changed files with 27 additions and 2 deletions
+16 -1
View File
@@ -527,7 +527,7 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
connect( actionShowHideHelp, SIGNAL( triggered() ), this, SLOT( switchHelpWindow() ) );
connect( actionShowHideLog, SIGNAL( triggered() ), this, SLOT( switchLogWindow() ) );
connect( actionShowHideAway, SIGNAL( triggered() ), this, SLOT( switchAwayWindow() ) );
connect( actionShowHideChance, SIGNAL( triggered() ), this, SLOT( switchChanceWindow() ) );
connect( pushButton_BetRaise, SIGNAL( clicked(bool) ), this, SLOT( pushButtonBetRaiseClicked(bool) ) );
connect( pushButton_Fold, SIGNAL( clicked(bool) ), this, SLOT( pushButtonFoldClicked(bool) ) );
@@ -2783,6 +2783,21 @@ void gameTableImpl::switchAwayWindow() {
}
}
void gameTableImpl::switchChanceWindow() {
int tab = 2;
if (groupBox_RightToolBox->isHidden()) {
tabWidget_Right->setCurrentIndex(tab);
groupBox_RightToolBox->show();
} else {
if (tabWidget_Right->currentIndex() == tab) {
groupBox_RightToolBox->hide();
} else {
tabWidget_Right->setCurrentIndex(tab);
}
}
}
void gameTableImpl::switchFullscreen() {
if (this->isFullScreen()) {