summaryrefslogtreecommitdiffstats
path: root/noatun/modules/voiceprint/voiceprint.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 06:00:15 +0000
commitb1057f437bf65300831a0ccb45b920787c6b318d (patch)
treef8a73db06ca1180d0da0ba6dfbe786197b4f4bc3 /noatun/modules/voiceprint/voiceprint.cpp
parent4ddfca384ced9ad654213aef9dc2c3973720b980 (diff)
downloadtdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.tar.gz
tdemultimedia-b1057f437bf65300831a0ccb45b920787c6b318d.zip
TQt4 port kdemultimedia
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1236079 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/modules/voiceprint/voiceprint.cpp')
-rw-r--r--noatun/modules/voiceprint/voiceprint.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/noatun/modules/voiceprint/voiceprint.cpp b/noatun/modules/voiceprint/voiceprint.cpp
index 0a82a1ab..234aafd0 100644
--- a/noatun/modules/voiceprint/voiceprint.cpp
+++ b/noatun/modules/voiceprint/voiceprint.cpp
@@ -35,7 +35,7 @@ VoicePrint::~VoicePrint()
void VoicePrint::init()
{
- Prefs *p=new Prefs(this);
+ Prefs *p=new Prefs(TQT_TQOBJECT(this));
p->reopen();
p->save();
resizeEvent(0);
@@ -66,13 +66,13 @@ void VoicePrint::resizeEvent(TQResizeEvent *)
#define COLOR(color, bgcolor, fgcolor, foctet) \
(int)( color(bgcolor) + (foctet) * (color(fgcolor) - color(bgcolor)) )
-inline static QRgb averageByIntensity(QRgb bgcolor, QRgb fgcolor, int octet)
+inline static TQRgb averageByIntensity(TQRgb bgcolor, TQRgb fgcolor, int octet)
{
float foctet = octet / 255.0;
- return qRgb(COLOR(qRed, bgcolor, fgcolor, foctet),
- COLOR(qGreen, bgcolor, fgcolor, foctet),
- COLOR(qBlue, bgcolor, fgcolor, foctet)
+ return tqRgb(COLOR(tqRed, bgcolor, fgcolor, foctet),
+ COLOR(tqGreen, bgcolor, fgcolor, foctet),
+ COLOR(tqBlue, bgcolor, fgcolor, foctet)
);
}
@@ -80,7 +80,7 @@ inline static QRgb averageByIntensity(QRgb bgcolor, QRgb fgcolor, int octet)
void VoicePrint::paintEvent(TQPaintEvent *e)
{
- bitBlt(this, e->rect().topLeft(), &mBuffer, e->rect(), Qt::CopyROP);
+ bitBlt(this, e->rect().topLeft(), &mBuffer, e->rect(), TQt::CopyROP);
}
void VoicePrint::scopeEvent(float *data, int bands)
@@ -113,12 +113,12 @@ void VoicePrint::scopeEvent(float *data, int bands)
// redraw changes with the minimum amount of work
if(newOffset != 0)
{
- repaint(mOffset,0,mSegmentWidth*2,height(),false);
+ tqrepaint(mOffset,0,mSegmentWidth*2,height(),false);
}
else
{
- repaint(mOffset,0,mSegmentWidth,height(),false);
- repaint(newOffset,0,mSegmentWidth,height(),false);
+ tqrepaint(mOffset,0,mSegmentWidth,height(),false);
+ tqrepaint(newOffset,0,mSegmentWidth,height(),false);
}
mOffset = newOffset;
}