summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kjofol-skin/kjsliders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/kjofol-skin/kjsliders.cpp')
-rw-r--r--noatun/modules/kjofol-skin/kjsliders.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/noatun/modules/kjofol-skin/kjsliders.cpp b/noatun/modules/kjofol-skin/kjsliders.cpp
index 8cadd04f..7b884853 100644
--- a/noatun/modules/kjofol-skin/kjsliders.cpp
+++ b/noatun/modules/kjofol-skin/kjsliders.cpp
@@ -32,7 +32,7 @@
* KJVolumeBar
*******************************************/
-KJVolumeBar::KJVolumeBar(const QStringList &i, KJLoader *p)
+KJVolumeBar::KJVolumeBar(const TQStringList &i, KJLoader *p)
: KJWidget(p), mVolume(0), mText(0)
{
int x, y, xs, ys;
@@ -48,18 +48,18 @@ KJVolumeBar::KJVolumeBar(const QStringList &i, KJLoader *p)
mSlider = parent()->pixmap(parser()["volumecontrolimage"][1]);
}
-QString KJVolumeBar::tip()
+TQString KJVolumeBar::tip()
{
return i18n("Volume");
}
-void KJVolumeBar::paint(QPainter *p, const QRect &)
+void KJVolumeBar::paint(TQPainter *p, const TQRect &)
{
// kdDebug(66666) << "x: " << rect().x() << " y: " << rect().y() << endl;
// kdDebug(66666) << "vol x: " << rect().x()+(mVolume*rect().width())/100 << endl;
// center of that slider-pixmap
-// QPoint hotSpot = QPoint( mSlider.width()/2, mSlider.height()/2 );
+// TQPoint hotSpot = TQPoint( mSlider.width()/2, mSlider.height()/2 );
// draw our background
bitBlt(
@@ -89,7 +89,7 @@ void KJVolumeBar::paint(QPainter *p, const QRect &)
mText->repaint();
}
-bool KJVolumeBar::mousePress(const QPoint &pos)
+bool KJVolumeBar::mousePress(const TQPoint &pos)
{
mVolume = (pos.x()*100) / rect().width();
// kdDebug(66666) << "volume: " << mVolume << endl;
@@ -98,11 +98,11 @@ bool KJVolumeBar::mousePress(const QPoint &pos)
return true;
}
-void KJVolumeBar::mouseRelease(const QPoint &, bool)
+void KJVolumeBar::mouseRelease(const TQPoint &, bool)
{
}
-void KJVolumeBar::mouseMove(const QPoint &pos, bool in)
+void KJVolumeBar::mouseMove(const TQPoint &pos, bool in)
{
if (!in)
return;
@@ -120,7 +120,7 @@ void KJVolumeBar::timeUpdate(int)
* KJVolumeBMP
*******************************************/
-KJVolumeBMP::KJVolumeBMP(const QStringList &i, KJLoader *p)
+KJVolumeBMP::KJVolumeBMP(const TQStringList &i, KJLoader *p)
: KJWidget(p), mVolume(0), mOldVolume(0), mText(0)
{
int x, y, xs, ys;
@@ -138,20 +138,20 @@ KJVolumeBMP::KJVolumeBMP(const QStringList &i, KJLoader *p)
timeUpdate(0);
}
-QString KJVolumeBMP::tip()
+TQString KJVolumeBMP::tip()
{
return i18n("Volume");
}
-void KJVolumeBMP::paint(QPainter *p, const QRect &)
+void KJVolumeBMP::paint(TQPainter *p, const TQRect &)
{
- QRect from(mVolume*mCount/100*mWidth, 0, mWidth, mImages.height());
+ TQRect from(mVolume*mCount/100*mWidth, 0, mWidth, mImages.height());
bitBlt(p->device(), rect().topLeft(), &mImages, from, Qt::CopyROP);
if (mText)
mText->repaint();
}
-bool KJVolumeBMP::mousePress(const QPoint &pos)
+bool KJVolumeBMP::mousePress(const TQPoint &pos)
{
QRgb color = mPos.pixel ( rect().topLeft().x()+pos.x(), rect().topLeft().y()+pos.y() );
@@ -169,10 +169,10 @@ bool KJVolumeBMP::mousePress(const QPoint &pos)
return true;
}
-void KJVolumeBMP::mouseRelease(const QPoint &, bool)
+void KJVolumeBMP::mouseRelease(const TQPoint &, bool)
{}
-void KJVolumeBMP::mouseMove(const QPoint &pos, bool in)
+void KJVolumeBMP::mouseMove(const TQPoint &pos, bool in)
{
if (!in) return;
mousePress(pos);
@@ -195,7 +195,7 @@ void KJVolumeBMP::timeUpdate(int)
* KJPitchBMP
*******************************************/
-KJPitchBMP::KJPitchBMP(const QStringList &i, KJLoader *p)
+KJPitchBMP::KJPitchBMP(const TQStringList &i, KJLoader *p)
: KJWidget(p), mText(0)
{
int x = i[1].toInt();
@@ -212,7 +212,7 @@ KJPitchBMP::KJPitchBMP(const QStringList &i, KJLoader *p)
mPos = parent()->image(parser()["pitchcontrolimageposition"][1]);
// makes all pixels with rgb(255,0,255) transparent
- QImage ibackground;
+ TQImage ibackground;
ibackground = parent()->image(parser()["pitchcontrolimage"][1]);
mImages.setMask( getMask(ibackground) );
@@ -239,16 +239,16 @@ KJPitchBMP::KJPitchBMP(const QStringList &i, KJLoader *p)
mText->repaint();
}
-QString KJPitchBMP::tip()
+TQString KJPitchBMP::tip()
{
return i18n("Pitch");
}
-void KJPitchBMP::paint(QPainter *p, const QRect &)
+void KJPitchBMP::paint(TQPainter *p, const TQRect &)
{
float xPos = (int)((mCurrentPitch-mMinPitch)*100.0) * mCount / (int)((mMaxPitch-mMinPitch)*100.0) * mWidth;
- QRect from( (int)xPos, 0, mWidth, mImages.height());
+ TQRect from( (int)xPos, 0, mWidth, mImages.height());
bitBlt(p->device(), rect().topLeft(), &mImages, from, Qt::CopyROP);
@@ -256,7 +256,7 @@ void KJPitchBMP::paint(QPainter *p, const QRect &)
mText->repaint();
}
-bool KJPitchBMP::mousePress(const QPoint &pos)
+bool KJPitchBMP::mousePress(const TQPoint &pos)
{
QRgb color = mPos.pixel ( rect().topLeft().x()+pos.x(), rect().topLeft().y()+pos.y() );
@@ -273,10 +273,10 @@ bool KJPitchBMP::mousePress(const QPoint &pos)
return true;
}
-void KJPitchBMP::mouseRelease(const QPoint &, bool)
+void KJPitchBMP::mouseRelease(const TQPoint &, bool)
{}
-void KJPitchBMP::mouseMove(const QPoint &pos, bool in)
+void KJPitchBMP::mouseMove(const TQPoint &pos, bool in)
{
if (!in) return;
mousePress(pos);