Drop TQT_TQ*_OBJECT defines

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

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

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

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

@ -76,7 +76,7 @@ TQString KTNEFMessage::rtfString()
TQByteArray rtf;
TQBuffer input( prop.asByteArray() ), output( rtf );
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 );
}
}

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

@ -286,7 +286,7 @@ bool KDateEdit::eventFilter( TQObject *object, TQEvent *event )
case TQEvent::MouseButtonDblClick:
case TQEvent::MouseButtonPress: {
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() );
if ( TQApplication::widgetAt( globalPos, true ) == this ) {
// The date picker is being closed by a click on the

Loading…
Cancel
Save