From a2277b6bc715464e83882b90c2a058139b8a6b54 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 23 Jun 2011 01:42:07 +0000 Subject: TQt4 port kdeutils This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1238125 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khexedit/draglabel.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'khexedit/draglabel.cc') diff --git a/khexedit/draglabel.cc b/khexedit/draglabel.cc index 8a98945..4f40110 100644 --- a/khexedit/draglabel.cc +++ b/khexedit/draglabel.cc @@ -28,12 +28,12 @@ #include "draglabel.h" -CDragLabel::CDragLabel( TQWidget *parent ) - : TQLabel( "draglabel", parent, "kde toolbar widget" ) +CDragLabel::CDragLabel( TQWidget *tqparent ) + : TQLabel( "draglabel", tqparent, "kde toolbar widget" ) { mValid = true; mDragPending = false; - setBackgroundMode( Qt::PaletteButton ); + setBackgroundMode( TQt::PaletteButton ); } @@ -44,7 +44,7 @@ CDragLabel::~CDragLabel( void ) void CDragLabel::mousePressEvent( TQMouseEvent *e ) { - if( mValid == false || e->button() != LeftButton || mUrl.isEmpty() == true ) + if( mValid == false || e->button() != Qt::LeftButton || mUrl.isEmpty() == true ) { return; } @@ -104,7 +104,7 @@ void CDragLabel::prepPixmap( KURLDrag &uriDrag ) } TQString text; - int index = mUrl.findRev( '/', mUrl.length() ); + int index = mUrl.tqfindRev( '/', mUrl.length() ); if( index < 0 ) { text = mUrl; @@ -120,12 +120,12 @@ void CDragLabel::prepPixmap( KURLDrag &uriDrag ) int h = fontMetrics().lineSpacing(); if( pixmap()->height() > h ) { h = pixmap()->height(); } - TQBitmap mask( w, h, TRUE ); + TQBitmap tqmask( w, h, TRUE ); TQPixmap dragPixmap( w, h ); dragPixmap.fill( black ); TQPainter p; - p.begin( &mask ); + p.begin( &tqmask ); p.setPen( white ); p.drawPixmap( 0, 0, mDragMask ); p.drawText( pixmap()->width()+sep, 0, w-pixmap()->width()+sep, @@ -136,7 +136,7 @@ void CDragLabel::prepPixmap( KURLDrag &uriDrag ) p.drawPixmap( 0, 0, *pixmap() ); p.end(); - dragPixmap.setMask( mask ); + dragPixmap.setMask( tqmask ); TQPoint hotspot( pixmap()->width(), pixmap()->height()/2 ); uriDrag.setPixmap( dragPixmap, hotspot ); -- cgit v1.2.1