diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/libkopete/webcamwidget.cpp | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/webcamwidget.cpp')
-rw-r--r-- | kopete/libkopete/webcamwidget.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kopete/libkopete/webcamwidget.cpp b/kopete/libkopete/webcamwidget.cpp index ad701b8e..0e47a0d4 100644 --- a/kopete/libkopete/webcamwidget.cpp +++ b/kopete/libkopete/webcamwidget.cpp @@ -23,8 +23,8 @@ namespace Kopete { -WebcamWidget::WebcamWidget( TQWidget* parent, const char* name ) -: TQWidget( parent, name ) +WebcamWidget::WebcamWidget( TQWidget* tqparent, const char* name ) +: TQWidget( tqparent, name ) { clear(); } @@ -67,13 +67,13 @@ void WebcamWidget::setText(const TQString& text) void WebcamWidget::paintEvent( TQPaintEvent* event ) { - TQMemArray<TQRect> rects = event->region().rects(); + TQMemArray<TQRect> rects = TQRegion(event->region()).tqrects(); if (!mPixmap.isNull()) { for (unsigned int i = 0; i < rects.count(); ++i) { - bitBlt(this, rects[i].topLeft(), &mPixmap, rects[i], Qt::CopyROP, true); + bitBlt(TQT_TQPAINTDEVICE(this), rects[i].topLeft(), TQT_TQPAINTDEVICE(&mPixmap), rects[i], TQt::CopyROP, true); } } else @@ -88,17 +88,17 @@ void WebcamWidget::paintEvent( TQPaintEvent* event ) // TODO: draw the text TQPainter p(this); - TQRect r = p.boundingRect(rect(), Qt::AlignCenter | Qt::WordBreak, mText ); + TQRect r = p.boundingRect(rect(), TQt::AlignCenter | TQt::WordBreak, mText ); if ( !mText.isEmpty() && event->rect().intersects(r)) { - p.setPen(Qt::black); + p.setPen(TQt::black); TQRect rec = rect(); rec.moveTopLeft(TQPoint(1,1)); - p.drawText(rec, Qt::AlignCenter | Qt::WordBreak, mText, -1); + p.drawText(rec, TQt::AlignCenter | TQt::WordBreak, mText, -1); rec.moveTopLeft(TQPoint(-1,-1)); - p.setPen(Qt::white); - p.drawText(rec, Qt::AlignCenter | Qt::WordBreak, mText, -1); + p.setPen(TQt::white); + p.drawText(rec, TQt::AlignCenter | TQt::WordBreak, mText, -1); } } |