diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-23 01:42:07 +0000 |
commit | a2277b6bc715464e83882b90c2a058139b8a6b54 (patch) | |
tree | ab09b14014f59b4d8e2ddd12226aa0b22e4dfc5d /khexedit/draglabel.cc | |
parent | d3f79e04b34bd1f70a458b81b28fc8799498c8dc (diff) | |
download | tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.tar.gz tdeutils-a2277b6bc715464e83882b90c2a058139b8a6b54.zip |
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
Diffstat (limited to 'khexedit/draglabel.cc')
-rw-r--r-- | khexedit/draglabel.cc | 16 |
1 files changed, 8 insertions, 8 deletions
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 ); |