From 5f5ee2367157176ed223b86343eb0a9e4022e020 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:52:55 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khexedit/hexdrag.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'khexedit/hexdrag.cc') diff --git a/khexedit/hexdrag.cc b/khexedit/hexdrag.cc index d09b28d..19cb34e 100644 --- a/khexedit/hexdrag.cc +++ b/khexedit/hexdrag.cc @@ -23,23 +23,23 @@ static const char *mediaString = "application/octet-stream"; -CHexDrag::CHexDrag( const QByteArray &data, QWidget *dragSource, +CHexDrag::CHexDrag( const TQByteArray &data, TQWidget *dragSource, const char *name ) - :QDragObject(dragSource,name) + :TQDragObject(dragSource,name) { setData( data ); prepPixmap(); } -CHexDrag::CHexDrag( QWidget *dragSource, const char *name ) - :QDragObject(dragSource,name) +CHexDrag::CHexDrag( TQWidget *dragSource, const char *name ) + :TQDragObject(dragSource,name) { prepPixmap(); } -void CHexDrag::setData( const QByteArray &data ) +void CHexDrag::setData( const TQByteArray &data ) { mData = data; } @@ -53,9 +53,9 @@ void CHexDrag::prepPixmap(void) // /* KIconLoader &loader = *KGlobal::iconLoader(); - QPixmap pix = loader.loadIcon( "binary.xpm" ); + TQPixmap pix = loader.loadIcon( "binary.xpm" ); - QPoint hotspot( pix.width()-20,pix.height()/2 ); + TQPoint hotspot( pix.width()-20,pix.height()/2 ); setPixmap( pix, hotspot ); */ } @@ -75,7 +75,7 @@ const char *CHexDrag::format( int i ) const } -QByteArray CHexDrag::encodedData( const char *fmt ) const +TQByteArray CHexDrag::encodedData( const char *fmt ) const { if( fmt != 0 ) { @@ -85,18 +85,18 @@ QByteArray CHexDrag::encodedData( const char *fmt ) const } } - QByteArray buf; + TQByteArray buf; return( buf ); } -bool CHexDrag::canDecode( const QMimeSource *e ) +bool CHexDrag::canDecode( const TQMimeSource *e ) { return( e->provides(mediaString) ); } -bool CHexDrag::decode( const QMimeSource *e, QByteArray &dest ) +bool CHexDrag::decode( const TQMimeSource *e, TQByteArray &dest ) { dest = e->encodedData(mediaString); return( dest.size() == 0 ? false : true ); -- cgit v1.2.1