You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
918 B
30 lines
918 B
/***************************************************************************
|
|
kjbackground.cpp
|
|
--------------------------------------
|
|
Just draws the main-pixmap of a KJöfol-Skin
|
|
--------------------------------------
|
|
Maintainer: Stefan Gehn <sgehn@gmx.net>
|
|
|
|
***************************************************************************/
|
|
|
|
#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);
|
|
}
|