adds F5 key indikator for show-my-cards-button

This commit is contained in:
doitux
2010-07-10 18:31:14 +00:00
parent f6472e6e94
commit f2dc22324e
3 changed files with 29 additions and 19 deletions
+17 -14
View File
@@ -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);
}
}