F1-F4 key indicator dynamical displayed on buttons now.

This commit is contained in:
doitux
2009-03-27 00:33:26 +00:00
parent b096149678
commit dd16cdee48
9 changed files with 202 additions and 40 deletions
+39
View File
@@ -0,0 +1,39 @@
//
// 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"
using namespace std;
MyActionButton::MyActionButton(QGroupBox* parent)
: QPushButton(parent)
{
}
MyActionButton::~MyActionButton()
{
}
void MyActionButton::paintEvent(QPaintEvent * event) {
QPushButton::paintEvent(event);
QPainter painter(this);
painter.setPen(QColor(240,240,240));
painter.setOpacity(0.5);
QFont f= painter.font();
f.setPixelSize(9);
painter.setFont(f);
painter.drawText(8,11,15,15,Qt::AlignLeft,fKeyText);
}