diff options
Diffstat (limited to 'noatun/modules/kjofol-skin/kjseeker.cpp')
-rw-r--r-- | noatun/modules/kjofol-skin/kjseeker.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/noatun/modules/kjofol-skin/kjseeker.cpp b/noatun/modules/kjofol-skin/kjseeker.cpp index 24fc2da1..e82a1f8e 100644 --- a/noatun/modules/kjofol-skin/kjseeker.cpp +++ b/noatun/modules/kjofol-skin/kjseeker.cpp @@ -22,24 +22,24 @@ KJSeeker::KJSeeker(const TQStringList &i, KJLoader *l) : KJWidget(l), g(0) { kdDebug(66666) << k_funcinfo << "No pressed background found for seeker," << " using default background!" << endl; - tqparent()->image(parser()["backgroundimage"][1]); + parent()->image(parser()["backgroundimage"][1]); } else - mActive = tqparent()->image(activeBg); + mActive = parent()->image(activeBg); - mScale = tqparent()->image(parser()["seekimage"][1]); - TQImage pixmapNoPress = tqparent()->image(parser()["backgroundimage"][1]); + mScale = parent()->image(parser()["seekimage"][1]); + TQImage pixmapNoPress = parent()->image(parser()["backgroundimage"][1]); - // generate transparent tqmask + // generate transparent mask int x, y, xs, ys; x=i[1].toInt(); y=i[2].toInt(); xs=i[3].toInt()-x; ys=i[4].toInt()-y; setRect(x,y,xs,ys); - TQImage transtqmask(xs, ys, 1, 2, TQImage::LittleEndian); - transtqmask.setColor(1, tqRgb(0,0,0)); - transtqmask.setColor(0, tqRgb(255,255,255)); + TQImage transmask(xs, ys, 1, 2, TQImage::LittleEndian); + transmask.setColor(1, tqRgb(0,0,0)); + transmask.setColor(0, tqRgb(255,255,255)); // clear the pointers memset(barmodeImages, 0, 256*sizeof(TQImage*)); @@ -55,10 +55,10 @@ KJSeeker::KJSeeker(const TQStringList &i, KJLoader *l) : KJWidget(l), g(0) // am I transparent? if (!isGray(checkmScale)) { - setPixel1BPP(transtqmask, ix-x, iy-y, 0); + setPixel1BPP(transmask, ix-x, iy-y, 0); continue; } - setPixel1BPP(transtqmask, ix-x, iy-y, 1); + setPixel1BPP(transmask, ix-x, iy-y, 1); // what is the level int level=grayRgb(checkmScale)+1; @@ -89,9 +89,9 @@ KJSeeker::KJSeeker(const TQStringList &i, KJLoader *l) : KJWidget(l), g(0) // create the blank one barmode[0]=new TQPixmap(xs, ys); - TQPixmap px=tqparent()->pixmap(parser()["backgroundimage"][1]); + TQPixmap px=parent()->pixmap(parser()["backgroundimage"][1]); bitBlt(barmode[0], 0, 0, &px, x, y, xs, ys, TQt::CopyROP); - px.convertFromImage(transtqmask); + px.convertFromImage(transmask); barModeMask=px; // kdDebug(66666) << "END KJSeeker constructor" << endl; @@ -180,7 +180,7 @@ void KJSeeker::timeUpdate(int sec) g = sec * 255 / length; //kdDebug(66666) << "sec: " << sec << " len: " << length << " g: " << g << endl; - TQPainter p(tqparent()); + TQPainter p(parent()); paint(&p, rect()); } |