Drop TQT_TQ*_OBJECT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/82/head
Michele Calgaro 1 year ago
parent cd4b0ac226
commit 33b2a9cc7d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -96,7 +96,7 @@ namespace KMail {
if ( !mFile.open( IO_WriteOnly ) ) if ( !mFile.open( IO_WriteOnly ) )
kdWarning( 5006 ) << "FileHtmlWriter: Cannot open file " << mFile.name() << endl; kdWarning( 5006 ) << "FileHtmlWriter: Cannot open file " << mFile.name() << endl;
else else
mStream.setDevice( &TQT_TQIODEVICE_OBJECT(mFile) ); mStream.setDevice( &mFile );
} }
void FileHtmlWriter::embedPart( const TQCString & contentId, const TQString & url ) { void FileHtmlWriter::embedPart( const TQCString & contentId, const TQString & url ) {

@ -3304,7 +3304,7 @@ void KMComposeWin::compressAttach( int idx )
msgPart = mAtmList.at( i ); msgPart = mAtmList.at( i );
TQByteArray array; TQByteArray array;
TQBuffer dev( array ); TQBuffer dev( array );
KZip zip( &TQT_TQIODEVICE_OBJECT(dev) ); KZip zip( &dev );
TQByteArray decoded = msgPart->bodyDecodedBinary(); TQByteArray decoded = msgPart->bodyDecodedBinary();
if ( ! zip.open( IO_WriteOnly ) ) { if ( ! zip.open( IO_WriteOnly ) ) {
KMessageBox::sorry(0, i18n("KMail could not compress the file.") ); KMessageBox::sorry(0, i18n("KMail could not compress the file.") );
@ -3383,7 +3383,7 @@ void KMComposeWin::uncompressAttach( int idx )
msgPart = mAtmList.at( i ); msgPart = mAtmList.at( i );
TQBuffer dev( msgPart->bodyDecodedBinary() ); TQBuffer dev( msgPart->bodyDecodedBinary() );
KZip zip( &TQT_TQIODEVICE_OBJECT(dev) ); KZip zip( &dev );
TQByteArray decoded; TQByteArray decoded;
decoded = msgPart->bodyDecodedBinary(); decoded = msgPart->bodyDecodedBinary();

@ -178,7 +178,7 @@ TQPixmap loadRenderingPixmap( KTNEFPropertySet *pSet, const TQColor& bgColor )
{ {
pix.resize( w, h ); pix.resize( w, h );
pix.fill( bgColor ); pix.fill( bgColor );
wmfLoader.paint( &TQT_TQPAINTDEVICE_OBJECT(pix) ); wmfLoader.paint( &pix );
} }
wmfBuffer.close(); wmfBuffer.close();
} }

@ -76,7 +76,7 @@ TQString KTNEFMessage::rtfString()
TQByteArray rtf; TQByteArray rtf;
TQBuffer input( prop.asByteArray() ), output( rtf ); TQBuffer input( prop.asByteArray() ), output( rtf );
if ( input.open( IO_ReadOnly ) && output.open( IO_WriteOnly ) ) if ( input.open( IO_ReadOnly ) && output.open( IO_WriteOnly ) )
lzfu_decompress( &TQT_TQIODEVICE_OBJECT(input), &TQT_TQIODEVICE_OBJECT(output) ); lzfu_decompress( &input, &output );
return TQString( rtf ); return TQString( rtf );
} }
} }

@ -2837,7 +2837,7 @@ TQString IncidenceFormatter::msTNEFToVPart( const TQByteArray& tnef )
ICalFormat calFormat; ICalFormat calFormat;
Event* event = new Event(); Event* event = new Event();
if( parser.openDevice( &TQT_TQIODEVICE_OBJECT(buf) ) ) { if( parser.openDevice( &buf ) ) {
KTNEFMessage* tnefMsg = parser.message(); KTNEFMessage* tnefMsg = parser.message();
//TQMap<int,KTNEFProperty*> props = parser.message()->properties(); //TQMap<int,KTNEFProperty*> props = parser.message()->properties();

@ -286,7 +286,7 @@ bool KDateEdit::eventFilter( TQObject *object, TQEvent *event )
case TQEvent::MouseButtonDblClick: case TQEvent::MouseButtonDblClick:
case TQEvent::MouseButtonPress: { case TQEvent::MouseButtonPress: {
TQMouseEvent *mouseEvent = (TQMouseEvent*)event; TQMouseEvent *mouseEvent = (TQMouseEvent*)event;
if ( !TQT_TQRECT_OBJECT(mPopup->rect()).contains( mouseEvent->pos() ) ) { if ( !mPopup->rect().contains( mouseEvent->pos() ) ) {
TQPoint globalPos = mPopup->mapToGlobal( mouseEvent->pos() ); TQPoint globalPos = mPopup->mapToGlobal( mouseEvent->pos() );
if ( TQApplication::widgetAt( globalPos, true ) == this ) { if ( TQApplication::widgetAt( globalPos, true ) == this ) {
// The date picker is being closed by a click on the // The date picker is being closed by a click on the

Loading…
Cancel
Save