adds F5 key indikator for show-my-cards-button
This commit is contained in:
@@ -2460,7 +2460,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>show</string>
|
<string notr="true">Show!</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
|||||||
@@ -2645,9 +2645,11 @@ void gameTableImpl::keyPressEvent ( QKeyEvent * event ) {
|
|||||||
pushButton_Fold->click();
|
pushButton_Fold->click();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (event->key() == Qt::Key_F5) { radioButton_manualAction->click(); }
|
if (event->key() == Qt::Key_F5) { pushButton_showMyCards->click(); }
|
||||||
if (event->key() == Qt::Key_F6) { radioButton_autoCheckFold->click(); }
|
|
||||||
if (event->key() == Qt::Key_F7) { radioButton_autoCheckCallAny->click(); }
|
if (event->key() == Qt::Key_F6) { radioButton_manualAction->click(); }
|
||||||
|
if (event->key() == Qt::Key_F7) { radioButton_autoCheckFold->click(); }
|
||||||
|
if (event->key() == Qt::Key_F8) { radioButton_autoCheckCallAny->click(); }
|
||||||
if (event->key() == Qt::Key_Shift) {
|
if (event->key() == Qt::Key_Shift) {
|
||||||
if(myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_LOCAL) {
|
if(myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_LOCAL) {
|
||||||
pushButton_break->click();
|
pushButton_break->click();
|
||||||
@@ -3261,6 +3263,7 @@ 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("");
|
||||||
@@ -3279,6 +3282,7 @@ 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,5 +3457,8 @@ void gameTableImpl::showShowMyCardsButton()
|
|||||||
|
|
||||||
void gameTableImpl::sendShowMyCardsSignal()
|
void gameTableImpl::sendShowMyCardsSignal()
|
||||||
{
|
{
|
||||||
|
if(pushButton_showMyCards->isVisible()) {
|
||||||
|
qDebug() << "show!";
|
||||||
pushButton_showMyCards->hide();
|
pushButton_showMyCards->hide();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ void MyActionButton::paintEvent(QPaintEvent * event) {
|
|||||||
if(objectName()==("pushButton_AllIn")) {
|
if(objectName()==("pushButton_AllIn")) {
|
||||||
painter.drawText(6,6,15,15,Qt::AlignLeft,fKeyText);
|
painter.drawText(6,6,15,15,Qt::AlignLeft,fKeyText);
|
||||||
}
|
}
|
||||||
|
else if(objectName()==("pushButton_showMyCards")){
|
||||||
|
painter.drawText(6,6,15,15,Qt::AlignLeft,fKeyText);
|
||||||
|
}
|
||||||
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