2009-03-27 00:33:26 +00:00
|
|
|
//
|
|
|
|
|
// C++ Implementation: mycardspixmaplabel
|
|
|
|
|
//
|
|
|
|
|
// Description:
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// Author: FThauer FHammer <f.thauer@web.de>, (C) 2007
|
|
|
|
|
//
|
|
|
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
#include "myactionbutton.h"
|
2009-04-01 12:27:31 +00:00
|
|
|
#include "gametablestylereader.h"
|
2009-03-27 00:33:26 +00:00
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
MyActionButton::MyActionButton(QGroupBox* parent)
|
|
|
|
|
: QPushButton(parent)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MyActionButton::~MyActionButton()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MyActionButton::paintEvent(QPaintEvent * event) {
|
|
|
|
|
|
|
|
|
|
QPushButton::paintEvent(event);
|
|
|
|
|
|
|
|
|
|
QPainter painter(this);
|
2009-04-01 12:27:31 +00:00
|
|
|
painter.setPen(QColor("#"+myStyle->getFKeyIndicatorColor()));
|
2009-03-27 00:33:26 +00:00
|
|
|
painter.setOpacity(0.5);
|
|
|
|
|
QFont f= painter.font();
|
|
|
|
|
f.setPixelSize(9);
|
|
|
|
|
painter.setFont(f);
|
2009-03-27 22:15:00 +00:00
|
|
|
if(objectName()==("pushButton_AllIn")) {
|
|
|
|
|
painter.drawText(6,6,15,15,Qt::AlignLeft,fKeyText);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
painter.drawText(8,11,15,15,Qt::AlignLeft,fKeyText);
|
|
|
|
|
}
|
2009-03-27 00:33:26 +00:00
|
|
|
}
|