summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmobjectdrag.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kpovmodeler/pmobjectdrag.cpp
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pmobjectdrag.cpp')
-rw-r--r--kpovmodeler/pmobjectdrag.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kpovmodeler/pmobjectdrag.cpp b/kpovmodeler/pmobjectdrag.cpp
index cd1ee6da..879bbc1c 100644
--- a/kpovmodeler/pmobjectdrag.cpp
+++ b/kpovmodeler/pmobjectdrag.cpp
@@ -73,7 +73,7 @@ PMObjectDrag::PMObjectDrag( PMPart* part, PMObject* object, TQWidget* dragSource
TQBuffer buffer( data );
buffer.open( IO_WriteOnly );
- PMSerializer* ser = it.current( )->newSerializer( &buffer );
+ PMSerializer* ser = it.current( )->newSerializer( TQT_TQIODEVICE(&buffer) );
if( ser )
{
@@ -143,7 +143,7 @@ PMObjectDrag::PMObjectDrag( PMPart* part, const PMObjectList& objList, TQWidget*
TQBuffer buffer( data );
buffer.open( IO_WriteOnly );
- PMSerializer* ser = fit.current( )->newSerializer( &buffer );
+ PMSerializer* ser = fit.current( )->newSerializer( TQT_TQIODEVICE(&buffer) );
if( ser )
{
@@ -170,7 +170,7 @@ PMObjectDrag::~PMObjectDrag( )
{
}
-TQByteArray PMObjectDrag::encodedData( const char* format ) const
+TQByteArray PMObjectDrag::tqencodedData( const char* format ) const
{
TQValueList<TQByteArray>::ConstIterator dit;
TQStringList::ConstIterator sit;
@@ -211,7 +211,7 @@ bool PMObjectDrag::canDecode( const TQMimeSource* e, PMPart* part )
PMParser* PMObjectDrag::newParser( const TQMimeSource* e, PMPart* part )
{
if( e->provides( c_kpmDocumentMimeFormat ) )
- return new PMXMLParser( part, e->encodedData( c_kpmDocumentMimeFormat ) );
+ return new PMXMLParser( part, e->tqencodedData( c_kpmDocumentMimeFormat ) );
const TQPtrList<PMIOFormat>& formats = part->ioManager( )->formats( );
TQPtrListIterator<PMIOFormat> fit( formats );
@@ -221,7 +221,7 @@ PMParser* PMObjectDrag::newParser( const TQMimeSource* e, PMPart* part )
TQString str = f->mimeType( );
const char* lat = str.latin1( );
if( f->services( ) & PMIOFormat::Import && e->provides( lat ) )
- return f->newParser( part, e->encodedData( lat ) );
+ return f->newParser( part, e->tqencodedData( lat ) );
}
return 0;