shortcut bugfix for show cards button
This commit is contained in:
@@ -3258,7 +3258,6 @@ void gameTableImpl::refreshCardsChance(GameState bero)
|
|||||||
void gameTableImpl::refreshActionButtonFKeyIndicator(bool clear)
|
void gameTableImpl::refreshActionButtonFKeyIndicator(bool clear)
|
||||||
{
|
{
|
||||||
if(clear) {
|
if(clear) {
|
||||||
pushButton_showMyCards->setFKeyText("");
|
|
||||||
pushButton_AllIn->setFKeyText("");
|
pushButton_AllIn->setFKeyText("");
|
||||||
pushButton_BetRaise->setFKeyText("");
|
pushButton_BetRaise->setFKeyText("");
|
||||||
pushButton_CallCheck->setFKeyText("");
|
pushButton_CallCheck->setFKeyText("");
|
||||||
@@ -3277,7 +3276,6 @@ void gameTableImpl::refreshActionButtonFKeyIndicator(bool clear)
|
|||||||
if(!pushButton_CallCheck->text().isEmpty()) pushButton_CallCheck->setFKeyText("F3");
|
if(!pushButton_CallCheck->text().isEmpty()) pushButton_CallCheck->setFKeyText("F3");
|
||||||
if(!pushButton_Fold->text().isEmpty()) pushButton_Fold->setFKeyText("F4");
|
if(!pushButton_Fold->text().isEmpty()) pushButton_Fold->setFKeyText("F4");
|
||||||
}
|
}
|
||||||
if(!pushButton_showMyCards->text().isEmpty()) pushButton_showMyCards->setFKeyText("F5");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3453,7 +3451,7 @@ void gameTableImpl::showShowMyCardsButton()
|
|||||||
void gameTableImpl::sendShowMyCardsSignal()
|
void gameTableImpl::sendShowMyCardsSignal()
|
||||||
{
|
{
|
||||||
if(pushButton_showMyCards->isVisible()) {
|
if(pushButton_showMyCards->isVisible()) {
|
||||||
qDebug() << "show!";
|
|
||||||
pushButton_showMyCards->hide();
|
pushButton_showMyCards->hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ void MyActionButton::paintEvent(QPaintEvent * event) {
|
|||||||
painter.drawText(6,6,15,15,Qt::AlignLeft,fKeyText);
|
painter.drawText(6,6,15,15,Qt::AlignLeft,fKeyText);
|
||||||
}
|
}
|
||||||
else if(objectName()==("pushButton_showMyCards")){
|
else if(objectName()==("pushButton_showMyCards")){
|
||||||
painter.drawText(6,6,15,15,Qt::AlignLeft,fKeyText);
|
painter.drawText(6,6,15,15,Qt::AlignLeft,QString("F5"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
painter.drawText(8,15,15,15,Qt::AlignLeft,fKeyText);
|
painter.drawText(8,15,15,15,Qt::AlignLeft,fKeyText);
|
||||||
|
|||||||
Reference in New Issue
Block a user