adds F5 key indikator for show-my-cards-button
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
using namespace std;
|
||||
|
||||
MyActionButton::MyActionButton(QGroupBox* parent)
|
||||
: QPushButton(parent)
|
||||
: QPushButton(parent)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -27,18 +27,21 @@ MyActionButton::~MyActionButton()
|
||||
|
||||
void MyActionButton::paintEvent(QPaintEvent * event) {
|
||||
|
||||
QPushButton::paintEvent(event);
|
||||
QPushButton::paintEvent(event);
|
||||
|
||||
QPainter painter(this);
|
||||
painter.setPen(QColor("#"+myStyle->getFKeyIndicatorColor()));
|
||||
painter.setOpacity(0.5);
|
||||
QFont f= painter.font();
|
||||
f.setPixelSize(9);
|
||||
painter.setFont(f);
|
||||
if(objectName()==("pushButton_AllIn")) {
|
||||
painter.drawText(6,6,15,15,Qt::AlignLeft,fKeyText);
|
||||
}
|
||||
else {
|
||||
painter.drawText(8,15,15,15,Qt::AlignLeft,fKeyText);
|
||||
}
|
||||
QPainter painter(this);
|
||||
painter.setPen(QColor("#"+myStyle->getFKeyIndicatorColor()));
|
||||
painter.setOpacity(0.5);
|
||||
QFont f= painter.font();
|
||||
f.setPixelSize(9);
|
||||
painter.setFont(f);
|
||||
if(objectName()==("pushButton_AllIn")) {
|
||||
painter.drawText(6,6,15,15,Qt::AlignLeft,fKeyText);
|
||||
}
|
||||
else if(objectName()==("pushButton_showMyCards")){
|
||||
painter.drawText(6,6,15,15,Qt::AlignLeft,fKeyText);
|
||||
}
|
||||
else {
|
||||
painter.drawText(8,15,15,15,Qt::AlignLeft,fKeyText);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user