diff options
Diffstat (limited to 'kpovmodeler')
-rw-r--r-- | kpovmodeler/pmdialogeditbase.cpp | 2 | ||||
-rw-r--r-- | kpovmodeler/pmobjectdrag.cpp | 4 | ||||
-rw-r--r-- | kpovmodeler/pmparser.cpp | 2 | ||||
-rw-r--r-- | kpovmodeler/pmpart.cpp | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/kpovmodeler/pmdialogeditbase.cpp b/kpovmodeler/pmdialogeditbase.cpp index 45b5c828..b958652c 100644 --- a/kpovmodeler/pmdialogeditbase.cpp +++ b/kpovmodeler/pmdialogeditbase.cpp @@ -390,7 +390,7 @@ void PMDialogEditBase::slotTexturePreview( ) buffer.open( IO_WriteOnly ); TQTextStream str( &buffer ); PMPovray31Format format; - PMSerializer* dev = format.newSerializer( TQT_TQIODEVICE(&buffer) ); + PMSerializer* dev = format.newSerializer( &buffer ); PMRenderMode mode; PMObjectList neededDeclares, objectsToCheck; TQPtrDict<PMObject> objectsToSerialize( 101 ); diff --git a/kpovmodeler/pmobjectdrag.cpp b/kpovmodeler/pmobjectdrag.cpp index 23631df0..cd1ee6da 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( TQT_TQIODEVICE(&buffer) ); + PMSerializer* ser = it.current( )->newSerializer( &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( TQT_TQIODEVICE(&buffer) ); + PMSerializer* ser = fit.current( )->newSerializer( &buffer ); if( ser ) { diff --git a/kpovmodeler/pmparser.cpp b/kpovmodeler/pmparser.cpp index ef921734..4a5f64b0 100644 --- a/kpovmodeler/pmparser.cpp +++ b/kpovmodeler/pmparser.cpp @@ -48,7 +48,7 @@ PMParser::PMParser( PMPart* part, const TQByteArray& array ) m_pPart = part; TQBuffer* buffer = new TQBuffer( array ); buffer->open( IO_ReadOnly ); - m_pDevice = TQT_TQIODEVICE(buffer); + m_pDevice = buffer; m_bDeviceCreated = true; init( ); diff --git a/kpovmodeler/pmpart.cpp b/kpovmodeler/pmpart.cpp index 8198a9d7..452f2bac 100644 --- a/kpovmodeler/pmpart.cpp +++ b/kpovmodeler/pmpart.cpp @@ -951,7 +951,7 @@ bool PMPart::exportPovray( const KURL& url ) if( ok ) { PMPovray35Format format; - PMSerializer* dev = format.newSerializer( TQT_TQIODEVICE(file) ); + PMSerializer* dev = format.newSerializer( file ); dev->serialize( m_pScene ); delete dev; @@ -1369,7 +1369,7 @@ void PMPart::slotFileImport( ) TQFile file( fileName ); if( file.open( IO_ReadOnly ) ) { - PMParser* newParser = selectedFormat->newParser( this, TQT_TQIODEVICE(&file) ); + PMParser* newParser = selectedFormat->newParser( this, &file ); if( newParser ) { if( m_pActiveObject ) @@ -1404,7 +1404,7 @@ void PMPart::slotFileExport( ) TQBuffer buffer( baData ); buffer.open( IO_WriteOnly ); - PMSerializer* newSer = selectedFormat->newSerializer( TQT_TQIODEVICE(&buffer) ); + PMSerializer* newSer = selectedFormat->newSerializer( &buffer ); if( newSer ) { newSer->serialize( m_pScene ); @@ -2713,7 +2713,7 @@ void PMPart::slotRender( ) TQBuffer buffer( a ); buffer.open( IO_WriteOnly ); PMPovray35Format format; - PMSerializer* dev = format.newSerializer( TQT_TQIODEVICE(&buffer) ); + PMSerializer* dev = format.newSerializer( &buffer ); dev->serialize( m_pScene ); delete dev; |