|
|
|
|
/***************************************************************************
|
|
|
|
|
kjbackground.cpp
|
|
|
|
|
--------------------------------------
|
|
|
|
|
Just draws the main-pixmap of a KJ<EFBFBD>fol-Skin
|
|
|
|
|
--------------------------------------
|
|
|
|
|
Maintainer: Stefan Gehn <sgehn@gmx.net>
|
|
|
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "kjbackground.h"
|
|
|
|
|
|
|
|
|
|
KJBackground::KJBackground(KJLoader *parent)
|
|
|
|
|
: KJWidget(parent)
|
|
|
|
|
{
|
|
|
|
|
TQImage ibackground;
|
|
|
|
|
|
|
|
|
|
mBackground = parent->pixmap(parser()["backgroundimage"][1]);
|
|
|
|
|
ibackground = parent->image(parser()["backgroundimage"][1]);
|
|
|
|
|
|
|
|
|
|
parent->setMask( getMask(ibackground) );
|
|
|
|
|
parent->setFixedSize ( TQSize(mBackground.width(), mBackground.height()) );
|
|
|
|
|
|
|
|
|
|
setRect(0,0,parent->width(),parent->height());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KJBackground::paint(TQPainter *painter, const TQRect &rect)
|
|
|
|
|
{
|
|
|
|
|
bitBlt(painter->device(), rect.topLeft(), &mBackground, rect, TQt::CopyROP);
|
|
|
|
|
}
|