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
901 B
30 lines
901 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 *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, Qt::CopyROP);
|
|
}
|