blob: 543d92cc6356399b6745ef4e9ed29bd10501d4e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/***************************************************************************
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);
}
|