summaryrefslogtreecommitdiffstats
path: root/khexedit/hexdrag.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /khexedit/hexdrag.cc
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khexedit/hexdrag.cc')
-rw-r--r--khexedit/hexdrag.cc22
1 files changed, 11 insertions, 11 deletions
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 );