pokerth logo in game list bg

This commit is contained in:
doitux
2007-10-30 12:14:42 +00:00
parent 26157027dc
commit 2275a8eca8
5 changed files with 100 additions and 1 deletions
@@ -0,0 +1,57 @@
//
// C++ Implementation: mycardspixmaplabel
//
// Description:
//
//
// Author: FThauer FHammer <f.thauer@web.de>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "mygamelisttreewidget.h"
#include <QDebug>
#include <iostream>
using namespace std;
MyGameListTreeWidget::MyGameListTreeWidget(QDialog* parent)
: QTreeWidget(parent)
{
//set the pixmap cache size in the main function only one time
QPixmapCache::setCacheLimit(1024);
}
MyGameListTreeWidget::~MyGameListTreeWidget()
{
}
void MyGameListTreeWidget::setGameListBackgroundImage(QString pmString) {
gameListBGPixmap.load(pmString);
}
void MyGameListTreeWidget::paintEvent(QPaintEvent *event) {
QPainter painter(viewport());
painter.drawPixmap(50, 5, gameListBGPixmap);
QTreeWidget::paintEvent(event);
}
// bool MyGameListTreeWidget::event(QEvent *event)
// {
// cout << event->type() << endl;
// // if(event->type() == 12) paintEvent(event);
//
// QTreeWidget::event(event);
// }
void MyGameListTreeWidget::scrollContentsBy ( int dx, int dy ) {
viewport()->update();
QTreeWidget::scrollContentsBy ( dx,dy );
}