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