From 17e2ed52dbf8fac39a04331da02b9572e9e2e304 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 1 Mar 2012 13:35:40 -0600 Subject: Rename additional global TQt functions --- certmanager/certificateinfowidgetimpl.cpp | 2 +- certmanager/certificatewizardimpl.cpp | 2 +- certmanager/certmanager.cpp | 10 +-- .../lib/backends/chiasmus/chiasmusbackend.cpp | 12 +-- certmanager/lib/backends/qgpgme/qgpgmebackend.cpp | 10 +-- certmanager/lib/kleo/cryptobackendfactory.cpp | 6 +- certmanager/lib/kleo/cryptobackendfactory.h | 2 +- certmanager/lib/tests/test.data | 26 +++--- certmanager/lib/ui/backendconfigwidget.cpp | 8 +- certmanager/lib/ui/kdhorizontalline.cpp | 2 +- kaddressbook/xxport/gnokii_xxport.cpp | 8 +- kdgantt/KDGanttMinimizeSplitter.cpp | 6 +- kdgantt/KDGanttView.cpp | 60 ++++++------- kdgantt/KDGanttViewEventItem.cpp | 2 +- kdgantt/KDGanttViewItem.cpp | 48 +++++----- kdgantt/KDGanttViewSubwidgets.cpp | 100 ++++++++++----------- kdgantt/KDGanttViewSummaryItem.cpp | 6 +- kdgantt/KDGanttViewTaskItem.cpp | 6 +- kdgantt/KDGanttViewTaskLink.cpp | 14 +-- kdgantt/KDGanttViewTaskLinkGroup.cpp | 4 +- kdgantt/KDGanttXMLTools.cpp | 14 +-- kioslaves/imap4/imapparser.cc | 10 +-- kioslaves/imap4/mailheader.cc | 24 ++--- kioslaves/imap4/mimeheader.cc | 26 +++--- kitchensync/libqopensync/group.cpp | 2 +- kitchensync/libqopensync/groupenv.cpp | 2 +- kitchensync/libqopensync/member.cpp | 2 +- kitchensync/opensyncdbus/dbusclient.cpp | 12 +-- kitchensync/src/mainwidget.cpp | 4 +- kitchensync/src/syncprocessmanager.cpp | 2 +- kmail/bodypartformatterfactory_p.h | 2 +- kmail/kmkernel.cpp | 2 +- kmail/kmmessage.cpp | 4 +- kmail/kmsearchpattern.cpp | 2 +- kmail/kmsender.cpp | 4 +- kmailcvt/filter_kmail_maildir.cxx | 2 +- kmailcvt/filter_mailapp.cxx | 2 +- kmailcvt/filter_mbox.cxx | 2 +- kmobile/devices/gnokii/gnokii_mobile.cpp | 4 +- knode/knarticlecollection.cpp | 6 +- knode/kngroup.cpp | 12 +-- knode/knnntpclient.cpp | 48 +++++----- knode/knprotocolclient.cpp | 22 ++--- kode/kwsdl/compiler.cpp | 4 +- kode/kwsdl/kung/binaryinputfield.cpp | 2 +- kode/kwsdl/kung/boolinputfield.cpp | 2 +- kode/kwsdl/kung/complexbaseinputfield.cpp | 14 +-- kode/kwsdl/kung/dateinputfield.cpp | 2 +- kode/kwsdl/kung/dispatcher.cpp | 6 +- kode/kwsdl/kung/doubleinputfield.cpp | 2 +- kode/kwsdl/kung/enuminputfield.cpp | 2 +- kode/kwsdl/kung/inputfieldfactory.cpp | 2 +- kode/kwsdl/kung/integerinputfield.cpp | 2 +- kode/kwsdl/kung/listinputfield.cpp | 4 +- kode/kwsdl/kung/loader.cpp | 4 +- kode/kwsdl/kung/pageinputfield.cpp | 6 +- kode/kwsdl/kung/simplebaseinputfield.cpp | 26 +++--- kode/kwsdl/kung/stringinputfield.cpp | 2 +- kode/kwsdl/kung/timeinputfield.cpp | 2 +- kode/kwsdl/kung/transport.cpp | 2 +- kode/kwsdl/main.cpp | 2 +- kode/kwsdl/schema/complextype.cpp | 18 ++-- kode/kwsdl/schema/fileprovider.cpp | 8 +- kode/kwsdl/schema/parser.cpp | 22 ++--- kode/kwsdl/schema/simpletype.cpp | 4 +- kode/kwsdl/tests/google/googlesearch.cc | 18 ++-- kode/kwsdl/tests/google/googlesearchservice.cpp | 18 ++-- kode/kwsdl/wscl/parser.cpp | 12 +-- kresources/egroupware/debugdialog.cpp | 2 +- kresources/groupwise/soap/groupwiseserver.cpp | 14 +-- kresources/kolab/kabc/contact.cpp | 2 +- kresources/kolab/kcal/event.cpp | 2 +- kresources/kolab/kcal/journal.cpp | 6 +- kresources/kolab/kcal/task.cpp | 2 +- kresources/kolab/knotes/note.cpp | 2 +- kresources/kolab/shared/kolabbase.cpp | 4 +- kresources/scalix/kabc/contact.cpp | 4 +- kresources/scalix/scalixadmin/passwordpage.cpp | 2 +- kresources/scalix/shared/scalixbase.cpp | 4 +- kresources/tvanytime/service.cpp | 12 +-- ktnef/gui/ktnefmain.cpp | 2 +- libemailfunctions/tests/testidmapper.cpp | 10 +-- libkcal/attachment.cpp | 6 +- libkmime/kmime_charfreq.cpp | 2 +- libkmime/kmime_content.cpp | 10 +-- libkmime/kmime_header_parsing.cpp | 6 +- libkmime/tests/test_kmime_codec.cpp | 6 +- libkmime/tests/test_kmime_header_parsing.cpp | 2 +- libkmime/tests/test_mdn.cpp | 2 +- libksieve/impl/lexer.h | 2 +- libtdenetwork/qgpgme/dataprovider.cpp | 8 +- libtdenetwork/qgpgme/eventloopinteractor.cpp | 2 +- libtdepim/ldapclient.cpp | 4 +- libtdepim/qutf7codec.cpp | 6 +- libtdepim/tests/testdateedit.cpp | 4 +- libtdepim/tests/testutf7decoder.cpp | 2 +- libtdepim/tests/testutf7encoder.cpp | 2 +- libtdepim/tests/testutf7encoder2.cpp | 4 +- plugins/kmail/bodypartformatter/text_xdiff.cpp | 2 +- 99 files changed, 434 insertions(+), 434 deletions(-) diff --git a/certmanager/certificateinfowidgetimpl.cpp b/certmanager/certificateinfowidgetimpl.cpp index 3a6c3200..74b476c8 100644 --- a/certmanager/certificateinfowidgetimpl.cpp +++ b/certmanager/certificateinfowidgetimpl.cpp @@ -207,7 +207,7 @@ void CertificateInfoWidgetImpl::startCertificateChainListing() { return; } const char * fpr = mChain.front().primaryFingerprint(); - if ( qstricmp( fpr, chainID ) == 0 ) { + if ( tqstricmp( fpr, chainID ) == 0 ) { kdDebug() << "CertificateInfoWidgetImpl::startCertificateChainListing(): chain_id equals fingerprint -> found root" << endl; return; } diff --git a/certmanager/certificatewizardimpl.cpp b/certmanager/certificatewizardimpl.cpp index d0545159..c8aab315 100644 --- a/certmanager/certificatewizardimpl.cpp +++ b/certmanager/certificatewizardimpl.cpp @@ -182,7 +182,7 @@ CertificateWizardImpl::~CertificateWizardImpl() static const char * oidForAttributeName( const TQString & attr ) { TQCString attrUtf8 = attr.utf8(); for ( unsigned int i = 0 ; i < numOidMaps ; ++i ) - if ( qstricmp( attrUtf8, oidmap[i].name ) == 0 ) + if ( tqstricmp( attrUtf8, oidmap[i].name ) == 0 ) return oidmap[i].oid; return 0; } diff --git a/certmanager/certmanager.cpp b/certmanager/certmanager.cpp index fdf33f3a..2fd144d4 100644 --- a/certmanager/certmanager.cpp +++ b/certmanager/certmanager.cpp @@ -641,7 +641,7 @@ void CertManager::newCertificate() */ void CertManager::revokeCertificate() { - qDebug("Not Yet Implemented"); + tqDebug("Not Yet Implemented"); } /** @@ -650,7 +650,7 @@ void CertManager::revokeCertificate() */ void CertManager::extendCertificate() { - qDebug("Not Yet Implemented"); + tqDebug("Not Yet Implemented"); } @@ -971,7 +971,7 @@ void CertManager::slotStderr( KProcess*, char* buf, int len ) { */ void CertManager::importCRLFromLDAP() { - qDebug("Not Yet Implemented"); + tqDebug("Not Yet Implemented"); } void CertManager::slotViewCRLs() { @@ -1008,11 +1008,11 @@ static void showDeleteError( TQWidget * parent, const GpgME::Error & err ) { } static bool ByFingerprint( const GpgME::Key & left, const GpgME::Key & right ) { - return qstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) < 0 ; + return tqstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) < 0 ; } static bool WithRespectToFingerprints( const GpgME::Key & left, const GpgME::Key & right ) { - return qstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) == 0; + return tqstricmp( left.primaryFingerprint(), right.primaryFingerprint() ) == 0; } void CertManager::slotDeleteCertificate() { diff --git a/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp b/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp index e47909e2..b3e75140 100644 --- a/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp +++ b/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp @@ -378,11 +378,11 @@ public: RefreshKeysJob * refreshKeysJob() const { return 0; } SpecialJob * specialJob( const char * type, const TQMap & args ) const { - if ( qstricmp( type, "x-obtain-keys" ) == 0 && args.size() == 0 ) + if ( tqstricmp( type, "x-obtain-keys" ) == 0 && args.size() == 0 ) return new ObtainKeysJob(); - if ( qstricmp( type, "x-encrypt" ) == 0 && args.size() == 0 ) + if ( tqstricmp( type, "x-encrypt" ) == 0 && args.size() == 0 ) return new ChiasmusJob( ChiasmusJob::Encrypt ); - if ( qstricmp( type, "x-decrypt" ) == 0 && args.size() == 0 ) + if ( tqstricmp( type, "x-decrypt" ) == 0 && args.size() == 0 ) return new ChiasmusJob( ChiasmusJob::Decrypt ); kdDebug(5150) << "ChiasmusBackend::Protocol: tried to instantiate unknown job type \"" << type << "\"" << endl; @@ -422,7 +422,7 @@ Kleo::CryptoConfig * Kleo::ChiasmusBackend::config() const { } Kleo::CryptoBackend::Protocol * Kleo::ChiasmusBackend::protocol( const char * name ) const { - if ( qstricmp( name, "Chiasmus" ) != 0 ) + if ( tqstricmp( name, "Chiasmus" ) != 0 ) return 0; if ( !mProtocol ) if ( checkForChiasmus() ) @@ -464,7 +464,7 @@ bool Kleo::ChiasmusBackend::checkForChiasmus( TQString * reason ) const { } bool Kleo::ChiasmusBackend::checkForProtocol( const char * name, TQString * reason ) const { - if ( qstricmp( name, "Chiasmus" ) == 0 ) + if ( tqstricmp( name, "Chiasmus" ) == 0 ) return checkForChiasmus( reason ); if ( reason ) *reason = i18n( "Unsupported protocol \"%1\"" ).arg( name ); @@ -472,7 +472,7 @@ bool Kleo::ChiasmusBackend::checkForProtocol( const char * name, TQString * reas } bool Kleo::ChiasmusBackend::supportsProtocol( const char * name ) const { - return qstricmp( name, "Chiasmus" ) == 0; + return tqstricmp( name, "Chiasmus" ) == 0; } const char * Kleo::ChiasmusBackend::enumerateProtocols( int i ) const { diff --git a/certmanager/lib/backends/qgpgme/qgpgmebackend.cpp b/certmanager/lib/backends/qgpgme/qgpgmebackend.cpp index 27680585..3cd30c63 100644 --- a/certmanager/lib/backends/qgpgme/qgpgmebackend.cpp +++ b/certmanager/lib/backends/qgpgme/qgpgmebackend.cpp @@ -109,9 +109,9 @@ bool Kleo::QGpgMEBackend::checkForSMIME( TQString * reason ) const { } bool Kleo::QGpgMEBackend::checkForProtocol( const char * name, TQString * reason ) const { - if ( qstricmp( name, OpenPGP ) == 0 ) + if ( tqstricmp( name, OpenPGP ) == 0 ) return check( GpgME::Context::OpenPGP, reason ); - if ( qstricmp( name, SMIME ) == 0 ) + if ( tqstricmp( name, SMIME ) == 0 ) return check( GpgME::Context::CMS, reason ); if ( reason ) *reason = i18n( "Unsupported protocol \"%1\"" ).arg( name ); @@ -133,15 +133,15 @@ Kleo::CryptoBackend::Protocol * Kleo::QGpgMEBackend::smime() const { } Kleo::CryptoBackend::Protocol * Kleo::QGpgMEBackend::protocol( const char * name ) const { - if ( qstricmp( name, OpenPGP ) == 0 ) + if ( tqstricmp( name, OpenPGP ) == 0 ) return openpgp(); - if ( qstricmp( name, SMIME ) == 0 ) + if ( tqstricmp( name, SMIME ) == 0 ) return smime(); return 0; } bool Kleo::QGpgMEBackend::supportsProtocol( const char * name ) const { - return qstricmp( name, OpenPGP ) == 0 || qstricmp( name, SMIME ) == 0; + return tqstricmp( name, OpenPGP ) == 0 || tqstricmp( name, SMIME ) == 0; } const char * Kleo::QGpgMEBackend::enumerateProtocols( int i ) const { diff --git a/certmanager/lib/kleo/cryptobackendfactory.cpp b/certmanager/lib/kleo/cryptobackendfactory.cpp index 0d3cb1e9..295c05c6 100644 --- a/certmanager/lib/kleo/cryptobackendfactory.cpp +++ b/certmanager/lib/kleo/cryptobackendfactory.cpp @@ -211,7 +211,7 @@ static const char * defaultBackend( const char * proto ) { { "Chiasmus", "chiasmus" }, }; for ( unsigned int i = 0 ; i < sizeof defaults / sizeof *defaults ; ++i ) - if ( qstricmp( proto, defaults[i].proto ) == 0 ) + if ( tqstricmp( proto, defaults[i].proto ) == 0 ) return defaults[i].backend; return 0; } @@ -238,10 +238,10 @@ namespace { CaseInsensitiveString( const char * s ) : m( s ) {} #define make_operator( op ) \ bool operator op( const CaseInsensitiveString & other ) const { \ - return qstricmp( m, other.m ) op 0; \ + return tqstricmp( m, other.m ) op 0; \ } \ bool operator op( const char * other ) const { \ - return qstricmp( m, other ) op 0; \ + return tqstricmp( m, other ) op 0; \ } make_operator( == ) make_operator( != ) diff --git a/certmanager/lib/kleo/cryptobackendfactory.h b/certmanager/lib/kleo/cryptobackendfactory.h index e674de11..da1743f9 100644 --- a/certmanager/lib/kleo/cryptobackendfactory.h +++ b/certmanager/lib/kleo/cryptobackendfactory.h @@ -52,7 +52,7 @@ namespace Kleo { struct lt_i_str { bool operator()( const char * one, const char * two ) const { - return qstricmp( one, two ) < 0; + return tqstricmp( one, two ) < 0; } }; diff --git a/certmanager/lib/tests/test.data b/certmanager/lib/tests/test.data index b4bce1a9..a4109fbd 100644 --- a/certmanager/lib/tests/test.data +++ b/certmanager/lib/tests/test.data @@ -124,7 +124,7 @@ static int inquire( void * void_ctx, const char * keyword ) { return gpg_error( GPG_ERR_NOT_IMPLEMENTED ); if ( const gpg_error_t err = assuan_send_data( ctx, it->second.c_str(), it->second.size() ) ) { - qDebug( "assuan_write_data: %s", gpg_strerror( err ) ); + tqDebug( "assuan_write_data: %s", gpg_strerror( err ) ); return err; } @@ -196,7 +196,7 @@ int main( int argc, char * argv[] ) { assuan_context_t ctx = 0; if ( const gpg_error_t err = assuan_socket_connect_ext( &ctx, socket, -1, 1 ) ) { - qDebug( "%s", assuan_exception( err, "assuan_socket_connect_ext" ).what() ); + tqDebug( "%s", assuan_exception( err, "assuan_socket_connect_ext" ).what() ); return 1; } @@ -204,12 +204,12 @@ int main( int argc, char * argv[] ) { for ( std::vector::const_iterator it = inFDs.begin(), end = inFDs.end() ; it != end ; ++it ) { if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) { - qDebug( "%s", assuan_exception( err, "assuan_sendfd( inFD )" ).what() ); + tqDebug( "%s", assuan_exception( err, "assuan_sendfd( inFD )" ).what() ); return 1; } if ( const gpg_error_t err = assuan_transact( ctx, "INPUT FD", 0, 0, 0, 0, 0, 0 ) ) { - qDebug( "%s", assuan_exception( err, "INPUT FD" ).what() ); + tqDebug( "%s", assuan_exception( err, "INPUT FD" ).what() ); return 1; } } @@ -220,7 +220,7 @@ int main( int argc, char * argv[] ) { sprintf( buffer, "INPUT FILE=%s", hexencode( *it ).c_str() ); if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) { - qDebug( "%s", assuan_exception( err, buffer ).what() ); + tqDebug( "%s", assuan_exception( err, buffer ).what() ); return 1; } } @@ -228,12 +228,12 @@ int main( int argc, char * argv[] ) { for ( std::vector::const_iterator it = msgFDs.begin(), end = msgFDs.end() ; it != end ; ++it ) { if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) { - qDebug( "%s", assuan_exception( err, "assuan_sendfd( msgFD )" ).what() ); + tqDebug( "%s", assuan_exception( err, "assuan_sendfd( msgFD )" ).what() ); return 1; } if ( const gpg_error_t err = assuan_transact( ctx, "MESSAGE FD", 0, 0, 0, 0, 0, 0 ) ) { - qDebug( "%s", assuan_exception( err, "MESSAGE FD" ).what() ); + tqDebug( "%s", assuan_exception( err, "MESSAGE FD" ).what() ); return 1; } } @@ -244,7 +244,7 @@ int main( int argc, char * argv[] ) { sprintf( buffer, "MESSAGE FILE=%s", hexencode( *it ).c_str() ); if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) { - qDebug( "%s", assuan_exception( err, buffer ).what() ); + tqDebug( "%s", assuan_exception( err, buffer ).what() ); return 1; } } @@ -252,12 +252,12 @@ int main( int argc, char * argv[] ) { for ( std::vector::const_iterator it = outFDs.begin(), end = outFDs.end() ; it != end ; ++it ) { if ( const gpg_error_t err = assuan_sendfd( ctx, *it ) ) { - qDebug( "%s", assuan_exception( err, "assuan_sendfd( outFD )" ).what() ); + tqDebug( "%s", assuan_exception( err, "assuan_sendfd( outFD )" ).what() ); return 1; } if ( const gpg_error_t err = assuan_transact( ctx, "OUTPUT FD", 0, 0, 0, 0, 0, 0 ) ) { - qDebug( "%s", assuan_exception( err, "OUTPUT FD" ).what() ); + tqDebug( "%s", assuan_exception( err, "OUTPUT FD" ).what() ); return 1; } } @@ -268,7 +268,7 @@ int main( int argc, char * argv[] ) { sprintf( buffer, "OUTPUT FILE=%s", hexencode( *it ).c_str() ); if ( const gpg_error_t err = assuan_transact( ctx, buffer, 0, 0, 0, 0, 0, 0 ) ) { - qDebug( "%s", assuan_exception( err, buffer ).what() ); + tqDebug( "%s", assuan_exception( err, buffer ).what() ); return 1; } } @@ -279,13 +279,13 @@ int main( int argc, char * argv[] ) { std::string line = "OPTION "; line += opt; if ( const gpg_error_t err = assuan_transact( ctx, line.c_str(), 0, 0, 0, 0, 0, 0 ) ) { - qDebug( "%s", assuan_exception( err, line ).what() ); + tqDebug( "%s", assuan_exception( err, line ).what() ); return 1; } } if ( const gpg_error_t err = assuan_transact( ctx, command.c_str(), data, ctx, inquire, ctx, status, ctx ) ) { - qDebug( "%s", assuan_exception( err, command ).what() ); + tqDebug( "%s", assuan_exception( err, command ).what() ); return 1; } diff --git a/certmanager/lib/ui/backendconfigwidget.cpp b/certmanager/lib/ui/backendconfigwidget.cpp index 33582e29..47ca25d4 100644 --- a/certmanager/lib/ui/backendconfigwidget.cpp +++ b/certmanager/lib/ui/backendconfigwidget.cpp @@ -142,8 +142,8 @@ private: // Helper for the constructor. static TQString itemText( const char * protocolName, const CryptoBackend::Protocol* protocol ) { // First one is the generic name (find a nice one for OpenPGP, SMIME) - const TQString protoName = qstricmp( protocolName, "openpgp" ) != 0 - ? qstricmp( protocolName, "smime" ) != 0 + const TQString protoName = tqstricmp( protocolName, "openpgp" ) != 0 + ? tqstricmp( protocolName, "smime" ) != 0 ? TQString::fromLatin1( protocolName ) : i18n( "S/MIME" ) : i18n( "OpenPGP" ); @@ -174,7 +174,7 @@ const Kleo::CryptoBackend* Kleo::BackendListView::chosenBackend( const char * pr for ( TQListViewItemIterator it( this /*, TQListViewItemIterator::Checked doesn't work*/ ) ; it.current() ; ++it ) if ( ProtocolCheckListItem * p = lvi_cast( it.current() ) ) - if ( p->isOn() && qstricmp( p->protocolName(), protocolName ) == 0 ) { + if ( p->isOn() && tqstricmp( p->protocolName(), protocolName ) == 0 ) { // OK that's the one. Now go up to the parent backend // (need to do that in the listview since Protocol doesn't know it) if ( const BackendListViewItem * parItem = lvi_cast( it.current()->parent() ) ) @@ -189,7 +189,7 @@ void Kleo::BackendListView::deselectAll( const char * protocolName, TQCheckListI it.current() ; ++it ) { if ( it.current() == except ) continue; if ( ProtocolCheckListItem * p = lvi_cast( it.current() ) ) - if ( p->isOn() && qstricmp( p->protocolName(), protocolName ) == 0 ) + if ( p->isOn() && tqstricmp( p->protocolName(), protocolName ) == 0 ) p->setOn( false ); } } diff --git a/certmanager/lib/ui/kdhorizontalline.cpp b/certmanager/lib/ui/kdhorizontalline.cpp index a053c992..118b6b10 100644 --- a/certmanager/lib/ui/kdhorizontalline.cpp +++ b/certmanager/lib/ui/kdhorizontalline.cpp @@ -94,7 +94,7 @@ void KDHorizontalLine::calculateFrame() { break; mLenVisible--; } - qDebug( "mLenVisible = %d (of %d)", mLenVisible, mTitle.length() ); + tqDebug( "mLenVisible = %d (of %d)", mLenVisible, mTitle.length() ); if ( mLenVisible ) { // but do we also have a visible label? TQRect r = rect(); const int va = style().styleHint( TQStyle::SH_GroupBox_TextLabelVerticalAlignment, this ); diff --git a/kaddressbook/xxport/gnokii_xxport.cpp b/kaddressbook/xxport/gnokii_xxport.cpp index 9f7b628f..c432c7e5 100644 --- a/kaddressbook/xxport/gnokii_xxport.cpp +++ b/kaddressbook/xxport/gnokii_xxport.cpp @@ -862,10 +862,10 @@ static TQString businit(void) data.imei = imei; TQCString unknown(GN_TO(i18n("Unknown"))); - qstrncpy(manufacturer, unknown, sizeof(manufacturer)-1); - qstrncpy(model, unknown, sizeof(model)-1); - qstrncpy(revision, unknown, sizeof(revision)-1); - qstrncpy(imei, unknown, sizeof(imei)-1); + tqstrncpy(manufacturer, unknown, sizeof(manufacturer)-1); + tqstrncpy(model, unknown, sizeof(model)-1); + tqstrncpy(revision, unknown, sizeof(revision)-1); + tqstrncpy(imei, unknown, sizeof(imei)-1); if (m_progressDlg->wasCancelled()) return TQString(); diff --git a/kdgantt/KDGanttMinimizeSplitter.cpp b/kdgantt/KDGanttMinimizeSplitter.cpp index 76d6e988..b0893aa1 100644 --- a/kdgantt/KDGanttMinimizeSplitter.cpp +++ b/kdgantt/KDGanttMinimizeSplitter.cpp @@ -1193,7 +1193,7 @@ void KDGanttMinimizeSplitter::setHidden( TQWidget *w, bool hide ) w2show = !hide; } else { #ifdef TQT_CHECK_RANGE - qWarning( "KDGanttMinimizeSplitter::setHidden(), unknown widget" ); + tqWarning( "KDGanttMinimizeSplitter::setHidden(), unknown widget" ); #endif return; } @@ -1217,7 +1217,7 @@ bool KDGanttMinimizeSplitter::isHidden( TQWidget *w ) const return !w2show; #ifdef TQT_CHECK_RANGE else - qWarning( "KDGanttMinimizeSplitter::isHidden(), unknown widget" ); + tqWarning( "KDGanttMinimizeSplitter::isHidden(), unknown widget" ); #endif return FALSE; } @@ -1377,7 +1377,7 @@ void kdganttGeomCalc( TQMemArray &chain, int start, int count, i if ( spacerCount ) spacerCount--; // only spacers between things if ( space < cMin + spacerCount * spacer ) { - // qDebug("not enough space"); + // tqDebug("not enough space"); for ( i = start; i < start+count; i++ ) { chain[i].size = chain[i].minimumSize; chain[i].done = TRUE; diff --git a/kdgantt/KDGanttView.cpp b/kdgantt/KDGanttView.cpp index bb797cc7..440da7a7 100644 --- a/kdgantt/KDGanttView.cpp +++ b/kdgantt/KDGanttView.cpp @@ -303,7 +303,7 @@ void KDGanttView::show() bool KDGanttView::close ( bool alsoDelete ) { - //qDebug("close "); + //tqDebug("close "); if ( closingBlocked ) return false; return TQWidget::close ( alsoDelete ); @@ -346,7 +346,7 @@ TQSize KDGanttView::sizeHint() const //hintWid += myTimeHeader->mySizeHint+myCanvasView->verticalScrollBar()->width(); hintWid += myCanvasView->sizeHint().width(); // add 10 for the splitter-bars - // qDebug("sizehint %d %d ",hintWid+10, hintHeight ); + // tqDebug("sizehint %d %d ",hintWid+10, hintHeight ); myTimeTable->setBlockUpdating( block ); return TQSize( hintWid+10, hintHeight ); } @@ -574,7 +574,7 @@ void KDGanttView::forceRepaint( int ) { if ( myTimeTable->blockUpdating() ) return; - // qDebug("forceRepaint( int ) "); + // tqDebug("forceRepaint( int ) "); myTimeTable->setAllChanged(); myTimeTable->update(); } @@ -814,8 +814,8 @@ bool KDGanttView::loadProject( TQIODevice* device ) TQString err; int errline, errcol; if ( !doc.setContent( device, &err, &errline, &errcol ) ) { - qDebug("KDGantt::Error parsing XML data at line %d. Message is:", errline ); - qDebug("%s ", err.latin1()); + tqDebug("KDGantt::Error parsing XML data at line %d. Message is:", errline ); + tqDebug("%s ", err.latin1()); device->close(); return false; } @@ -2671,7 +2671,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if( KDGanttXML::readColorNode( element, value ) ) color = value; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -2736,7 +2736,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if ( value == "Undefined" ) undefinedShape = true; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -2775,7 +2775,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if ( value == "Undefined" ) undefinedShape = true; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -2813,7 +2813,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if ( value == "Undefined" ) undefinedShape = true; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -2824,7 +2824,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) middleShape, endShape, false ); undefinedShape = false; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -2856,7 +2856,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if( KDGanttXML::readColorNode( element, value ) ) endColor = value; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -2884,7 +2884,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if( KDGanttXML::readColorNode( element, value ) ) endColor = value; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -2912,7 +2912,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if( KDGanttXML::readColorNode( element, value ) ) endColor = value; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -2921,7 +2921,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) setColors( KDGanttViewItem::Summary, startColor, middleColor, endColor , false); } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -2949,7 +2949,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) setDefaultColor( KDGanttViewItem::Summary, value , false); } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -2982,7 +2982,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if( KDGanttXML::readColorNode( element, value ) ) endColor = value; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -3011,7 +3011,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if( KDGanttXML::readColorNode( element, value ) ) endColor = value; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -3040,7 +3040,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if( KDGanttXML::readColorNode( element, value ) ) endColor = value; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -3050,7 +3050,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) startColor, middleColor, endColor, false ); } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -3078,7 +3078,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) setDefaultHighlightColor( KDGanttViewItem::Summary, value, false ); } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -3105,7 +3105,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) element ); previous = newItem; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -3121,7 +3121,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if( tagName == "TaskLink" ) KDGanttViewTaskLink::createFromDomElement( element ); else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -3137,7 +3137,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if( tagName == "TaskLink" ) KDGanttViewTaskLinkGroup::createFromDomElement( element ); } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } @@ -3168,7 +3168,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) if( KDGanttXML::readColorNode( element, value ) ) color = value; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -3177,7 +3177,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) } setColumnBackgroundColor( dateTime, color ); } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -3220,7 +3220,7 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) else ok = false; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -3230,17 +3230,17 @@ bool KDGanttView::loadXML( const TQDomDocument& doc ) addLegendItem( tempLegendShape, tempLegendColor, tempLegendString ); - qDebug( "Adding legend item %s", tempLegendString.latin1() ); + tqDebug( "Adding legend item %s", tempLegendString.latin1() ); } } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } node = node.nextSibling(); } } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -4607,7 +4607,7 @@ void KDGanttView::setLvVScrollBarMode( TQScrollView::ScrollBarMode m ) void KDGanttView::setGvVScrollBarMode( TQScrollView::ScrollBarMode m ) { if ( m == TQScrollView::Auto ) - qDebug("KDGanttView::setListViewVScrollBarMode: TQScrollView::Auto not supported. Nothing changed. "); + tqDebug("KDGanttView::setListViewVScrollBarMode: TQScrollView::Auto not supported. Nothing changed. "); else { myCanvasView->setVScrollBarMode ( m ); diff --git a/kdgantt/KDGanttViewEventItem.cpp b/kdgantt/KDGanttViewEventItem.cpp index 2d43a8e0..f98bb0fd 100644 --- a/kdgantt/KDGanttViewEventItem.cpp +++ b/kdgantt/KDGanttViewEventItem.cpp @@ -139,7 +139,7 @@ KDGanttViewEventItem::~KDGanttViewEventItem() void KDGanttViewEventItem::setStartTime( const TQDateTime& start ) { if (! start.isValid() ) { - qDebug("KDGanttViewEventItem::setStartTime():Invalid parameter-no time set"); + tqDebug("KDGanttViewEventItem::setStartTime():Invalid parameter-no time set"); return; } myStartTime = start; diff --git a/kdgantt/KDGanttViewItem.cpp b/kdgantt/KDGanttViewItem.cpp index 0bfc7279..c24a3580 100644 --- a/kdgantt/KDGanttViewItem.cpp +++ b/kdgantt/KDGanttViewItem.cpp @@ -563,16 +563,16 @@ void KDGanttViewItem::setEndTime( const TQDateTime& end ) { switch( type() ) { case Event: - qDebug( "KDGantt:Event Item has no end time" ); + tqDebug( "KDGantt:Event Item has no end time" ); break; case Summary: ((KDGanttViewSummaryItem*)this)->setEndTime( end ); break; case Task: - qDebug( "KDGantt:Task Item has no end time" ); + tqDebug( "KDGantt:Task Item has no end time" ); break; default: - qDebug( "Unknown type in KDGanttViewItem::typeToString()" ); + tqDebug( "Unknown type in KDGanttViewItem::typeToString()" ); } } @@ -1325,7 +1325,7 @@ void KDGanttViewItem::updateCanvasItems() } else { b.setStyle(Qt::SolidPattern); b.setColor(myStartColor); - // qDebug("update color %s %s", listViewText().latin1(),myStartColor.name().latin1() ); + // tqDebug("update color %s %s", listViewText().latin1(),myStartColor.name().latin1() ); startShape->setBrush(b); b.setColor(myMiddleColor); midShape->setBrush(b); @@ -1472,12 +1472,12 @@ void KDGanttViewItem::initColorAndShapes(Type t) // set shapes if (!( shapeDefined = (myGanttView->shapes(myType,myStartShape,myMiddleShape,myEndShape)))) { - //qDebug("KDGantt::KDGanttViewItem created with not user defined shapes"); + //tqDebug("KDGantt::KDGanttViewItem created with not user defined shapes"); }; setShapes(myStartShape,myMiddleShape,myEndShape); if ( type() == Task ) { - //qDebug("new task %s ", listViewText().latin1()); + //tqDebug("new task %s ", listViewText().latin1()); if ( startShape ) delete startShape; startShape = (KDCanvasPolygonItem*)new KDCanvasRectangle(myGanttView->myTimeTable,this,Type_is_KDGanttViewItem); @@ -1627,7 +1627,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttView* view, else if( typeString == "Event" ) item = new KDGanttViewEventItem( view ); else { - qDebug( "Unknown item type %s in KDGanttViewItem::createFromDomElement()", typeString.latin1() ); + tqDebug( "Unknown item type %s in KDGanttViewItem::createFromDomElement()", typeString.latin1() ); return 0; } @@ -1659,7 +1659,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttView* view, else if( typeString == "Event" ) item = new KDGanttViewEventItem( view, previous ); else { - qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); + tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); return 0; } @@ -1691,7 +1691,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent, else if( typeString == "Event" ) item = new KDGanttViewEventItem( parent ); else { - qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); + tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); return 0; } @@ -1723,7 +1723,7 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent, else if( typeString == "Event" ) item = new KDGanttViewEventItem( parent, previous ); else { - qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); + tqDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); return 0; } @@ -1859,7 +1859,7 @@ void KDGanttViewItem::loadFromDomElement( TQDomElement& element ) element ); previous = newItem; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -1867,7 +1867,7 @@ void KDGanttViewItem::loadFromDomElement( TQDomElement& element ) node = node.nextSibling(); } } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -1893,7 +1893,7 @@ TQString KDGanttViewItem::typeToString( Type type ) case Task: return "Task"; default: - qDebug( "Unknown type in KDGanttViewItem::typeToString()" ); + tqDebug( "Unknown type in KDGanttViewItem::typeToString()" ); return "Summary"; } return ""; @@ -2105,7 +2105,7 @@ int KDGanttViewItem::computeHeight() showItem( false ); if ( firstChild() ) firstChild()->hideSubtree(); - // qDebug("KDGanttViewItem::computeHeight() %s returns 0 ", TQListViewItem::text(0).latin1()); + // tqDebug("KDGanttViewItem::computeHeight() %s returns 0 ", TQListViewItem::text(0).latin1()); return 0; } @@ -2146,7 +2146,7 @@ int KDGanttViewItem::computeHeight() // display closed item as usual // if ( isOpen() ) { - //qDebug("KDGanttViewItem::computeHeight() %s is open ", TQListViewItem::text(0).latin1()); + //tqDebug("KDGanttViewItem::computeHeight() %s is open ", TQListViewItem::text(0).latin1()); temp = firstChild(); // if item opened, iterate over all subitems int tempHeight; @@ -2157,19 +2157,19 @@ int KDGanttViewItem::computeHeight() if ( special ) { if ( temp->displaySubitemsAsGroup() ) { hei += tempHeight; - //qDebug(" hei added "); + //tqDebug(" hei added "); } else { temp->showSubitemTree( getCoordY() ); } } else { hei += tempHeight; - //qDebug(" hei added "); + //tqDebug(" hei added "); } temp = temp->nextSibling(); } } else { // closed! - //qDebug("KDGanttViewItem::computeHeight() %s is closed ", TQListViewItem::text(0).latin1()); + //tqDebug("KDGanttViewItem::computeHeight() %s is closed ", TQListViewItem::text(0).latin1()); if ( !displaySubitemsAsGroup() ) { if ( firstChild() ) { @@ -2187,7 +2187,7 @@ int KDGanttViewItem::computeHeight() showItem( true ); hei += height(); - //qDebug("KDGanttViewItem::computeHeight() %s returns: %d ", TQListViewItem::text(0).latin1(), hei); + //tqDebug("KDGanttViewItem::computeHeight() %s returns: %d ", TQListViewItem::text(0).latin1(), hei); return hei; } @@ -2219,11 +2219,11 @@ void KDGanttViewItem::paintBranches ( TQPainter* p, const TQColorGroup& cg, KDGanttViewItem * temp = firstChild(); while ( temp ) { if ( temp->showNoCross() ) { - //qDebug("paintNoCross %s ", temp->listViewText(0).latin1()); + //tqDebug("paintNoCross %s ", temp->listViewText(0).latin1()); int y_coord = temp->itemPos() -height ()- itemPos(); int hei = temp->height(); - //qDebug(" y %d w %d h %d ", y,w,h); - //qDebug("yc %d hei %d",y_coord,hei ); + //tqDebug(" y %d w %d h %d ", y,w,h); + //tqDebug("yc %d hei %d",y_coord,hei ); myGanttView->myListView->paintemptyarea( p, TQRect( 0,y+y_coord,w,hei)); int x_c = w/2; int y_c = y+y_coord+ temp->height ()/2; @@ -2487,7 +2487,7 @@ void KDGanttViewItem::moveTextCanvas(int x, int y) mx -= 2*myItemSize; // keep old behaviour textCanvas->move(mx+2*myItemSize,my-myItemSize/2); - //qDebug("%s: moveTextCanvas(%d,%d) offset: %d,%d moved to %d,%d",listViewText(0).latin1(),x,y,myTextOffset.x(),myTextOffset.y(),mx+2*myItemSize,my-myItemSize/2); + //tqDebug("%s: moveTextCanvas(%d,%d) offset: %d,%d moved to %d,%d",listViewText(0).latin1(),x,y,myTextOffset.x(),myTextOffset.y(),mx+2*myItemSize,my-myItemSize/2); } /*! @@ -2505,7 +2505,7 @@ void KDGanttViewItem::moveTextCanvas() */ void KDGanttViewItem::setTextOffset(TQPoint p) { - //qDebug("%s: setTextOffset() offset: %d,%d",listViewText(0).latin1(),p.x(),p.y()); + //tqDebug("%s: setTextOffset() offset: %d,%d",listViewText(0).latin1(),p.x(),p.y()); myTextOffset.setX(p.x()); myTextOffset.setY(p.y()); } diff --git a/kdgantt/KDGanttViewSubwidgets.cpp b/kdgantt/KDGanttViewSubwidgets.cpp index 859a4b59..e22e49c0 100644 --- a/kdgantt/KDGanttViewSubwidgets.cpp +++ b/kdgantt/KDGanttViewSubwidgets.cpp @@ -179,7 +179,7 @@ int KDTimeTableWidget::computeHeight() if (hei == 0) { hei = 1; } - //qDebug("COMPUTED HEI %d ", hei); + //tqDebug("COMPUTED HEI %d ", hei); emit heightComputed( hei ); return hei; } @@ -188,7 +188,7 @@ void KDTimeTableWidget::computeVerticalGrid() // recompute the vertical grid // compute the vertical grid // if we have too much lines, hide them - //qDebug("computeVerticalGrid() "); + //tqDebug("computeVerticalGrid() "); int cw = myGanttView->myTimeHeader->myGridMinorWidth; int i = 0; int h ; @@ -434,7 +434,7 @@ void KDTimeTableWidget::computeVerticalGrid() void KDTimeTableWidget::computeHorizontalGrid() { // compute horizontal grid - //qDebug("computeHorizontalGrid() "); + //tqDebug("computeHorizontalGrid() "); KDGanttViewItem* temp = myGanttView->firstChild(); int wid; if ( pendingWidth ) @@ -474,7 +474,7 @@ void KDTimeTableWidget::computeHorizontalGrid() //TQString ts = "asGroup"; //if (!temp->displaySubitemsAsGroup() ) // ts = " NOT asGroup"; - //qDebug("temp name %s %s", temp->listViewText(0).latin1(), ts.latin1()); + //tqDebug("temp name %s %s", temp->listViewText(0).latin1(), ts.latin1()); temp = temp->itemBelow (); } @@ -586,10 +586,10 @@ void KDTimeTableWidget::computeTaskLinks() void KDTimeTableWidget::updateMyContent() { if ( flag_blockUpdating || int_blockUpdating ) { - // qDebug("KDTimeTableWidget::updateMyContent() blocked! "); + // tqDebug("KDTimeTableWidget::updateMyContent() blocked! "); return; } - //qDebug("KDTimeTableWidget::updateMyContent() ********************************* "); + //tqDebug("KDTimeTableWidget::updateMyContent() ********************************* "); /* // debug output KDGanttViewItem* temp = myGanttView->firstChild(); @@ -638,7 +638,7 @@ void KDTimeTableWidget::updateMyContent() } pendingWidth = 0; pendingHeight = 0; - //qDebug("KDTimeTableWidget::updateMyContent() -------------------------"); + //tqDebug("KDTimeTableWidget::updateMyContent() -------------------------"); } // used for blocking recursive methods // e.g. KDGanttViewItem::setHighlight() and displaySubitemsAsGroup() == true @@ -1111,12 +1111,12 @@ void KDTimeHeaderWidget::zoomToSelection( TQDateTime start, TQDateTime end) if (start < myHorizonStart) { myHorizonStart = start; flagStartTimeSet = true; - //qDebug("myHorizonStart reset"); + //tqDebug("myHorizonStart reset"); } if (end > myHorizonEnd) { myHorizonEnd = end; flagEndTimeSet = true; - //qDebug("myHorizonEnd reset "); + //tqDebug("myHorizonEnd reset "); } flagDoNotRepaintAfterChange = true;//avoid flicker zoom(1.0); // set to 100% @@ -1134,7 +1134,7 @@ void KDTimeHeaderWidget::zoomToSelection( TQDateTime start, TQDateTime end) zoom (fac); timeWid = getCoordX(end)-getCoordX(start); if ( count++ > 10 ) { - //qDebug("Exiting while loop in zoomToSelection "); + //tqDebug("Exiting while loop in zoomToSelection "); break; } } @@ -1156,7 +1156,7 @@ void KDTimeHeaderWidget::zoom(double factor, bool absolute) { flagZoomToFit = false; if ( factor < 0.000001 ) { - qDebug("KDGanttView::zoom() : Zoom factor to low. Nothing zoomed. "); + tqDebug("KDGanttView::zoom() : Zoom factor to low. Nothing zoomed. "); return; } double newZoom; @@ -1167,12 +1167,12 @@ void KDTimeHeaderWidget::zoom(double factor, bool absolute) double relativeZoom; relativeZoom = newZoom / myZoomFactor; - //qDebug("zooming relative %f ", relativeZoom); - //qDebug("zooming absolute %f ", newZoom); + //tqDebug("zooming relative %f ", relativeZoom); + //tqDebug("zooming absolute %f ", newZoom); int viewWid = myGanttView->myCanvasView->viewport()->width(); if ( width() * relativeZoom < viewWid && ( newZoom > 1.01 || newZoom < 0.99 ) ) { - qDebug("KDGanttView::zoom() : Zoom factor to low for current horizon. "); - // qDebug("zooming relative %f, zooming absolute %f, viewWidth %d width %d ", relativeZoom, newZoom, viewWid, width() ); + tqDebug("KDGanttView::zoom() : Zoom factor to low for current horizon. "); + // tqDebug("zooming relative %f, zooming absolute %f, viewWidth %d width %d ", relativeZoom, newZoom, viewWid, width() ); return; } myZoomFactor = newZoom; @@ -1819,14 +1819,14 @@ int KDTimeHeaderWidget::minorScaleCount() const void KDTimeHeaderWidget::resizeEvent ( TQResizeEvent * ) { - // qDebug("KDTimeHeaderWidget:: resizeEvent "); + // tqDebug("KDTimeHeaderWidget:: resizeEvent "); paintPix.resize( 800, height () ); } void KDTimeHeaderWidget::updateTimeTable() { - //qDebug("KDTimeHeaderWidget::updateTimeTable() "); + //tqDebug("KDTimeHeaderWidget::updateTimeTable() "); if (flagDoNotRecomputeAfterChange) return; // setting the scrolling steps int scrollLineStep = myGridMinorWidth; @@ -1969,7 +1969,7 @@ TQDateTime KDTimeHeaderWidget::getEvenTimeDate(TQDateTime tempdatetime ,Scale sc min = tempdatetime.time().minute(); while (60%tempMinorScaleCount > 0 && 60%tempMinorScaleCount < 60) ++tempMinorScaleCount; - // qDebug("myMinorScaleCount %d %d %d",myMinorScaleCount, myRealMinorScaleCount, tempMinorScaleCount); + // tqDebug("myMinorScaleCount %d %d %d",myMinorScaleCount, myRealMinorScaleCount, tempMinorScaleCount); min = (min /tempMinorScaleCount)*tempMinorScaleCount; tempdatetime = TQDateTime (tempdatetime.date(), TQTime (tempdatetime.time().hour(),min )); @@ -1985,7 +1985,7 @@ void KDTimeHeaderWidget::computeRealScale(TQDateTime start) { if (myScale ==KDGanttView::Auto) { - //qDebug("Autoscale "); + //tqDebug("Autoscale "); //double secsPerMinor = (((double)start.daysTo(myHorizonEnd))* 86400.00)/((double)myAutoScaleMinorTickcount); double secsPerMinor = (((double)start.secsTo(myHorizonEnd)))/((double)myAutoScaleMinorTickcount); secsPerMinor /= myZoomFactor; @@ -2017,7 +2017,7 @@ void KDTimeHeaderWidget::computeRealScale(TQDateTime start) myRealMajorScaleCount = 1; } else { - //qDebug("Fixed scale "); + //tqDebug("Fixed scale "); myRealScale = myScale; if (myRealScale > myMaxScale) myRealScale = myMaxScale; @@ -2067,7 +2067,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale) if (flagDoNotRecomputeAfterChange) return; bool block = myGanttView->myTimeTable->blockUpdating(); myGanttView->myTimeTable->setBlockUpdating( true ); - //qDebug("computeticks "); + //tqDebug("computeticks "); majorTicks.clear(); minorText.clear(); majorText.clear(); @@ -2082,7 +2082,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale) tempMajorScaleCount = myRealMajorScaleCount; int minorItems,minorPerMajor = 1; minorItems = (int) (secsFromTo( myRealStart, myHorizonEnd)/60.0); - //qDebug("tempMinorScaleCount %d ", tempMinorScaleCount); + //tqDebug("tempMinorScaleCount %d ", tempMinorScaleCount); TQPainter p(this); int Width, Height; TQString testTextMinor,testTextMajor, tempStr; @@ -2131,14 +2131,14 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale) minorPerMajor = 1200; break; case KDGanttView::Auto: - qDebug("KDGanttView::Internal Error in KDTimeHeaderWidget::computeTicks() "); - qDebug(" RealScale == Auto : This may not be! "); + tqDebug("KDGanttView::Internal Error in KDTimeHeaderWidget::computeTicks() "); + tqDebug(" RealScale == Auto : This may not be! "); break; } itemRectMinor = p.boundingRect ( 10, 10, 2, 2, TQt::AlignLeft,testTextMinor); itemRectMajor = p.boundingRect ( 10, 10, 2, 2, TQt::AlignLeft,testTextMajor); p.end(); - //qDebug(" tempMinorScaleCount %d ", tempMinorScaleCount); + //tqDebug(" tempMinorScaleCount %d ", tempMinorScaleCount); Height = itemRectMinor.height()+itemRectMajor.height()+11; Width = (itemRectMinor.width()+5); if (Width < minimumColumnWidth()) Width = minimumColumnWidth(); @@ -2149,7 +2149,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale) maxWid = maximumWidth(); while((minorItems/tempMinorScaleCount+1)*Width > maxWid) ++tempMinorScaleCount; - //qDebug(" tempMinorScaleCount %d ", tempMinorScaleCount); + //tqDebug(" tempMinorScaleCount %d ", tempMinorScaleCount); mySizeHint = (minorItems/tempMinorScaleCount+1)*Width; switch (myRealScale) { @@ -2162,7 +2162,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale) myRealMinorScaleCount = tempMinorScaleCount/ 60; // myRealMinorScaleCount = 1; myRealMajorScaleCount = 1; - qDebug("KDGantt::Overzoom:Rescaling from Minute to Hour"); + tqDebug("KDGantt::Overzoom:Rescaling from Minute to Hour"); myGanttView->myTimeTable->setBlockUpdating( block ); emit myGanttView->rescaling( KDGanttView::Hour ); computeTicks(true); @@ -2177,7 +2177,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale) myRealMinorScaleCount = tempMinorScaleCount/ 24; //myRealMinorScaleCount = 1; myRealMajorScaleCount = 1; - qDebug("KDGantt::Overzoom:Rescaling from Hour to Day"); + tqDebug("KDGantt::Overzoom:Rescaling from Hour to Day"); myGanttView->myTimeTable->setBlockUpdating( block ); emit myGanttView->rescaling( KDGanttView::Day ); computeTicks(true); @@ -2339,7 +2339,7 @@ void KDTimeHeaderWidget::computeTicks(bool doNotComputeRealScale) myGanttView->myTimeTable->setBlockUpdating( block ); return; } - //qDebug("KDTimeHeaderWidget width %d, viewport width %d ",width (), myGanttView->myCanvasView->viewport()->width()); + //tqDebug("KDTimeHeaderWidget width %d, viewport width %d ",width (), myGanttView->myCanvasView->viewport()->width()); myGanttView->myTimeTable->setBlockUpdating( block ); updateTimeTable(); centerDateTime(myCenterDateTime); @@ -2364,7 +2364,7 @@ void KDTimeHeaderWidget::saveCenterDateTime() void KDTimeHeaderWidget::centerDateTime( const TQDateTime& center ) { moveTimeLineTo(getCoordX( center )-(myGanttView->myCanvasView->viewport()->width() /2)); - // qDebug("centerDateTime %s %d %d", center.toString().latin1(),getCoordX( center ),(myGanttView->myCanvasView->viewport()->width() /2) ); + // tqDebug("centerDateTime %s %d %d", center.toString().latin1(),getCoordX( center ),(myGanttView->myCanvasView->viewport()->width() /2) ); } @@ -2482,8 +2482,8 @@ void KDTimeHeaderWidget::mouseReleaseEvent ( TQMouseEvent * ) start = 0; if ( end > width() ) end = width(); - //qDebug("start %s ",getDateTimeForIndex(start).toString().latin1() ); - //qDebug("end %s ",getDateTimeForIndex(end).toString().latin1() ); + //tqDebug("start %s ",getDateTimeForIndex(start).toString().latin1() ); + //tqDebug("end %s ",getDateTimeForIndex(end).toString().latin1() ); emit myGanttView->timeIntervalSelected( getDateTimeForIndex(start),getDateTimeForIndex(end) ); emit myGanttView->timeIntervallSelected( getDateTimeForIndex(start),getDateTimeForIndex(end) ); //zoomToSelection( getDateTimeForIndex(start),getDateTimeForIndex(end) ); @@ -2529,7 +2529,7 @@ void KDTimeHeaderWidget::mouseMoveEvent ( TQMouseEvent * e ) } myGanttView->myCanvasView->horizontalScrollBar()->setValue( val ); } - //qDebug("mousemove %d %d %d %d",endMouseDown, -x(),parentWidget()->width() , e->pos().y()); + //tqDebug("mousemove %d %d %d %d",endMouseDown, -x(),parentWidget()->width() , e->pos().y()); } } @@ -2708,7 +2708,7 @@ KDListView::KDListView(TQWidget* parent, KDGanttView* gantView):TQListView (pare void KDListView::dragItem( TQListViewItem * ) { - // qDebug("drag "); + // tqDebug("drag "); // startDrag(); } TQString KDListView::getWhatsThisText(TQPoint p) @@ -2746,7 +2746,7 @@ void KDListView::setOpen(TQListViewItem * item, bool open ) } else { temp->setVisible( false ); - //qDebug(" temp->setVisible( false );"); + //tqDebug(" temp->setVisible( false );"); } temp = temp->nextSibling(); } @@ -3009,7 +3009,7 @@ void KDListView::dragMoveEvent ( TQDragMoveEvent * e) void KDListView::dragLeaveEvent ( TQDragLeaveEvent * ) { - //qDebug("contentsDragLeaveEvent "); + //tqDebug("contentsDragLeaveEvent "); } void KDListView::dropEvent ( TQDropEvent *e ) { @@ -3028,7 +3028,7 @@ void KDListView::dropEvent ( TQDropEvent *e ) KDGanttViewItem* newItem = 0; if ( gItem == myGanttView->myCanvasView->lastClickedItem && gItem != 0 ) { - qDebug("KDGanttView::Possible bug in drag&drop code "); + tqDebug("KDGanttView::Possible bug in drag&drop code "); return; } @@ -3056,16 +3056,16 @@ void KDListView::dropEvent ( TQDropEvent *e ) newItem = KDGanttViewItem::createFromDomElement( myGanttView, element ); } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } - //qDebug("next node1 "); + //tqDebug("next node1 "); node = node.nextSibling(); } } } - //qDebug("next node2 "); + //tqDebug("next node2 "); node = node.nextSibling(); } newItem->setDisplaySubitemsAsGroup(myGanttView->displaySubitemsAsGroup()); @@ -3273,7 +3273,7 @@ void KDGanttCanvasView::myUpdateScrollBars() } void KDGanttCanvasView::setMyContentsHeight( int hei ) { - //qDebug("setMyContentsHeight %d %d ", hei, myMyContentsHeight); + //tqDebug("setMyContentsHeight %d %d ", hei, myMyContentsHeight); if ( hei > 0 ) myMyContentsHeight = hei; verticalScrollBar()->setUpdatesEnabled( true ); // set false in resizeEvent() @@ -3294,7 +3294,7 @@ void KDGanttCanvasView::setMyContentsHeight( int hei ) // Call after *internal* resizing (like addTickRight()) // Then the new scrollbar maxValue is in myTimeHeader. void KDGanttCanvasView::updateHorScrollBar() { - //qDebug("horizontalScrollBar max=%d, myTimeHeaderScroll=%d", horizontalScrollBar()->maxValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->value()); + //tqDebug("horizontalScrollBar max=%d, myTimeHeaderScroll=%d", horizontalScrollBar()->maxValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->value()); horizontalScrollBar()->setRange(mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->minValue(), mySignalSender->myTimeHeaderScroll->horizontalScrollBar()->maxValue()); @@ -3332,7 +3332,7 @@ void KDGanttCanvasView::insertItemAfter( KDGanttViewItem* parent , KDGanttViewI void KDGanttCanvasView::cutItem() { lastClickedItem->hideSubtree(); - //qDebug("last clicked %d parent %d ", lastClickedItem , lastClickedItem->parent()); + //tqDebug("last clicked %d parent %d ", lastClickedItem , lastClickedItem->parent()); if ( lastClickedItem->parent() ) lastClickedItem->parent()->takeItem(lastClickedItem); else @@ -3509,8 +3509,8 @@ KDGanttCanvasView::MovingOperation KDGanttCanvasView::gvItemHitTest( KDGanttView void KDGanttCanvasView::contentsMousePressEvent ( TQMouseEvent * e ) { - //qDebug("mousepress! %d ", this); - //qDebug("focus %d ",tqApp->focusWidget()); + //tqDebug("mousepress! %d ", this); + //tqDebug("focus %d ",tqApp->focusWidget()); setFocus(); currentLink = 0; currentItem = 0; @@ -3637,9 +3637,9 @@ void KDGanttCanvasView::contentsMouseReleaseEvent ( TQMouseEvent * e ) mouseDown = false; static KDGanttViewItem* lastClicked = 0; mySignalSender->gvMouseButtonClicked( e->button(), currentItem , e->globalPos() ); - //qDebug("datetime %s ",mySignalSender->getDateTimeForCoordX(e->globalPos().x(), true ).toString().latin1() ); - //qDebug("mousepos %d %d ",e->pos().x(),e->pos().y() ); - //qDebug("mouseup "); + //tqDebug("datetime %s ",mySignalSender->getDateTimeForCoordX(e->globalPos().x(), true ).toString().latin1() ); + //tqDebug("mousepos %d %d ",e->pos().x(),e->pos().y() ); + //tqDebug("mouseup "); // if ( currentLink || currentItem ) { switch ( e->button() ) { @@ -3873,7 +3873,7 @@ void KDGanttCanvasView::contentsMouseMoveEvent ( TQMouseEvent *e ) if (autoScrollEnabled) mousePos = e->pos()- TQPoint(contentsX(),contentsY()); // make mousePos relative 0 if (fromItem) { - //qDebug("mousemove: linking %s: %d,%d ",fromItem->listViewText().latin1(), e->pos().x(), e->pos().y()); + //tqDebug("mousemove: linking %s: %d,%d ",fromItem->listViewText().latin1(), e->pos().x(), e->pos().y()); linkLine->setPoints(linkLine->startPoint().x(), linkLine->startPoint().y(), e->pos().x(), e->pos().y()); canvas()->update(); } @@ -3946,7 +3946,7 @@ int KDGanttCanvasView::getItemArea(KDGanttViewItem *item, int x) { // TODO: middle (move, dnd), front, back (resize) KDTimeTableWidget *tt = dynamic_cast(canvas()); if (!tt) { - qWarning("Cannot cast canvas to KDTimeTableWidget"); + tqWarning("Cannot cast canvas to KDTimeTableWidget"); return 0; } int area = 0; diff --git a/kdgantt/KDGanttViewSummaryItem.cpp b/kdgantt/KDGanttViewSummaryItem.cpp index 96980d2a..7c400e54 100644 --- a/kdgantt/KDGanttViewSummaryItem.cpp +++ b/kdgantt/KDGanttViewSummaryItem.cpp @@ -138,7 +138,7 @@ KDGanttViewSummaryItem::~KDGanttViewSummaryItem() void KDGanttViewSummaryItem::setMiddleTime( const TQDateTime& dateTime ) { if (! dateTime.isValid() ) { - qDebug("KDGanttViewSummaryItem::setMiddleTime():Invalid parameter-no time set"); + tqDebug("KDGanttViewSummaryItem::setMiddleTime():Invalid parameter-no time set"); return; } if (!myMiddleTime) myMiddleTime = new TQDateTime; @@ -177,7 +177,7 @@ TQDateTime KDGanttViewSummaryItem::middleTime() const void KDGanttViewSummaryItem::setEndTime( const TQDateTime& end ) { if (! end.isValid() ) { - qDebug("KDGanttViewSummaryItem::setEndTime():Invalid parameter-no time set"); + tqDebug("KDGanttViewSummaryItem::setEndTime():Invalid parameter-no time set"); return; } myEndTime = end; @@ -200,7 +200,7 @@ void KDGanttViewSummaryItem::setEndTime( const TQDateTime& end ) void KDGanttViewSummaryItem::setStartTime( const TQDateTime& start ) { if (! start.isValid() ) { - qDebug("KDGanttViewSummaryItem::setStartTime():Invalid parameter-no time set"); + tqDebug("KDGanttViewSummaryItem::setStartTime():Invalid parameter-no time set"); return; } myStartTime = start; diff --git a/kdgantt/KDGanttViewTaskItem.cpp b/kdgantt/KDGanttViewTaskItem.cpp index 605cb991..9bdedaf8 100644 --- a/kdgantt/KDGanttViewTaskItem.cpp +++ b/kdgantt/KDGanttViewTaskItem.cpp @@ -171,7 +171,7 @@ void KDGanttViewTaskItem::setEndTime( const TQDateTime& end ) void KDGanttViewTaskItem::setStartTime( const TQDateTime& start ) { if (! start.isValid() ) { - qDebug("KDGanttViewTaskItem::setStartTime():Invalid parameter-no time set"); + tqDebug("KDGanttViewTaskItem::setStartTime():Invalid parameter-no time set"); return; } myStartTime = start; @@ -199,7 +199,7 @@ void KDGanttViewTaskItem::hideMe() void KDGanttViewTaskItem::showItem(bool show, int coordY) { - //qDebug("KDGanttViewTaskItem::showItem() %d %s ", (int) show, listViewText().latin1()); + //tqDebug("KDGanttViewTaskItem::showItem() %d %s ", (int) show, listViewText().latin1()); isVisibleInGanttView = show; invalidateHeight () ; if (!show) { @@ -361,7 +361,7 @@ void KDGanttViewTaskItem::initItem() parent()->setVisible( true ); } else showItem(true); - //qDebug("initItem %s %s", listViewText().latin1(),startShape->brush().color().name().latin1() ); + //tqDebug("initItem %s %s", listViewText().latin1(),startShape->brush().color().name().latin1() ); myGanttView->myTimeTable->updateMyContent(); setDragEnabled( myGanttView->dragEnabled() ); setDropEnabled( myGanttView->dropEnabled() ); diff --git a/kdgantt/KDGanttViewTaskLink.cpp b/kdgantt/KDGanttViewTaskLink.cpp index bc6047fd..7d0706c7 100644 --- a/kdgantt/KDGanttViewTaskLink.cpp +++ b/kdgantt/KDGanttViewTaskLink.cpp @@ -326,7 +326,7 @@ void KDGanttViewTaskLink::showMe( bool visible ) void KDGanttViewTaskLink::showMeType( bool visible ) { - //qDebug("KDGanttViewTaskLink::showMeType %d",linkType()); + //tqDebug("KDGanttViewTaskLink::showMeType %d",linkType()); hide(); isvisible = visible; int wid = 1; @@ -486,7 +486,7 @@ void KDGanttViewTaskLink::showMeType( bool visible ) break; } default: - qWarning("KDGanttViewTaskLink: Unknown link type"); + tqWarning("KDGanttViewTaskLink: Unknown link type"); break; } (*horIt)->show(); @@ -803,7 +803,7 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el if( KDGanttXML::readStringNode( element, value ) ) fromList << value; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -820,7 +820,7 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el if( KDGanttXML::readStringNode( element, value ) ) toList << value; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -859,7 +859,7 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el if( KDGanttXML::readStringNode( element, value ) ) linktype = stringToLinkType( value ); } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -882,11 +882,11 @@ KDGanttViewTaskLink* KDGanttViewTaskLink::createFromDomElement( TQDomElement& el } // safeguard aginst incorrect names if (fromItemList.isEmpty()) { - qDebug("Cannot create link: fromItemList is empty"); + tqDebug("Cannot create link: fromItemList is empty"); return 0; } if (toItemList.isEmpty()) { - qDebug("Cannot create link: toItemList is empty"); + tqDebug("Cannot create link: toItemList is empty"); return 0; } KDGanttViewTaskLink* tl = new KDGanttViewTaskLink( fromItemList, diff --git a/kdgantt/KDGanttViewTaskLinkGroup.cpp b/kdgantt/KDGanttViewTaskLinkGroup.cpp index 34b5bb81..3437dcd1 100644 --- a/kdgantt/KDGanttViewTaskLinkGroup.cpp +++ b/kdgantt/KDGanttViewTaskLinkGroup.cpp @@ -337,7 +337,7 @@ KDGanttViewTaskLinkGroup* KDGanttViewTaskLinkGroup::createFromDomElement( TQDomE if( KDGanttXML::readStringNode( element, value ) ) name = value; } else { - qDebug( "Unrecognized tag name: %s", tagName.latin1() ); + tqDebug( "Unrecognized tag name: %s", tagName.latin1() ); Q_ASSERT( false ); } } @@ -382,6 +382,6 @@ void KDGanttViewTaskLinkGroup::generateAndInsertName( const TQString& name ) } sGroupDict.insert( newName, this ); _name = newName; - //qDebug("KDGanttViewTaskLinkGroup::generateAndInsertName: inserted '%s'",newName.latin1()); + //tqDebug("KDGanttViewTaskLinkGroup::generateAndInsertName: inserted '%s'",newName.latin1()); } diff --git a/kdgantt/KDGanttXMLTools.cpp b/kdgantt/KDGanttXMLTools.cpp index 5f2909c0..ea9006cd 100644 --- a/kdgantt/KDGanttXMLTools.cpp +++ b/kdgantt/KDGanttXMLTools.cpp @@ -415,7 +415,7 @@ bool readBrushNode( const TQDomElement& element, TQBrush& brush ) } else if( tagName == "Pixmap" ) { ok = ok & readPixmapNode( element, tempPixmap ); } else { - qDebug( "Unknown tag in brush" ); + tqDebug( "Unknown tag in brush" ); } } node = node.nextSibling(); @@ -447,14 +447,14 @@ bool readPixmapNode( const TQDomElement& element, TQPixmap& pixmap ) ok = ok & readStringNode( element, formatName ); #ifndef NDEBUG if( formatName != "XPM.GZ" ) - qDebug( "Unsupported pixmap format in XML file" ); + tqDebug( "Unsupported pixmap format in XML file" ); #endif } else if( tagName == "Length" ) { ok = ok & readIntNode( element, tempLengthi ); } else if( tagName == "Data" ) { ok = ok & readStringNode( element, tempData ); } else { - qDebug( "Unknown tag in Pixmap" ); + tqDebug( "Unknown tag in Pixmap" ); } } node = node.nextSibling(); @@ -521,7 +521,7 @@ bool readPenNode( const TQDomElement& element, TQPen& pen ) ok = ok & readStringNode( element, value ); tempStyle = stringToPenStyle( value ); } else { - qDebug( "Unknown tag in brush" ); + tqDebug( "Unknown tag in brush" ); } } node = node.nextSibling(); @@ -561,7 +561,7 @@ bool readFontNode( const TQDomElement& element, TQFont& font ) } else if( tagName == "CharSet" ) { ok = ok & readIntNode( element, charSet ); } else { - qDebug( "Unknown tag in color map" ); + tqDebug( "Unknown tag in color map" ); } } node = node.nextSibling(); @@ -596,7 +596,7 @@ bool readRectNode( const TQDomElement& element, TQRect& value ) } else if( tagName == "Y" ) { ok = ok & readIntNode( element, y ); } else { - qDebug( "Unknown tag in rect" ); + tqDebug( "Unknown tag in rect" ); } } node = node.nextSibling(); @@ -629,7 +629,7 @@ bool readDateTimeNode( const TQDomElement& element, TQDateTime& datetime ) } else if( tagName == "Time" ) { ok = ok & readTimeNode( element, tempTime ); } else { - qDebug( "Unknown tag in datetime" ); + tqDebug( "Unknown tag in datetime" ); } } node = node.nextSibling(); diff --git a/kioslaves/imap4/imapparser.cc b/kioslaves/imap4/imapparser.cc index 6bd31366..791e78fa 100644 --- a/kioslaves/imap4/imapparser.cc +++ b/kioslaves/imap4/imapparser.cc @@ -1808,7 +1808,7 @@ void imapParser::parseRelay (const TQByteArray & buffer) { Q_UNUSED(buffer); - qWarning + tqWarning ("imapParser::parseRelay - virtual function not reimplemented - data lost"); } @@ -1816,7 +1816,7 @@ void imapParser::parseRelay (ulong len) { Q_UNUSED(len); - qWarning + tqWarning ("imapParser::parseRelay - virtual function not reimplemented - announcement lost"); } @@ -1825,7 +1825,7 @@ bool imapParser::parseRead (TQByteArray & buffer, ulong len, ulong relay) Q_UNUSED(buffer); Q_UNUSED(len); Q_UNUSED(relay); - qWarning + tqWarning ("imapParser::parseRead - virtual function not reimplemented - no data read"); return FALSE; } @@ -1834,7 +1834,7 @@ bool imapParser::parseReadLine (TQByteArray & buffer, ulong relay) { Q_UNUSED(buffer); Q_UNUSED(relay); - qWarning + tqWarning ("imapParser::parseReadLine - virtual function not reimplemented - no data read"); return FALSE; } @@ -1843,7 +1843,7 @@ void imapParser::parseWriteLine (const TQString & str) { Q_UNUSED(str); - qWarning + tqWarning ("imapParser::parseWriteLine - virtual function not reimplemented - no data written"); } diff --git a/kioslaves/imap4/mailheader.cc b/kioslaves/imap4/mailheader.cc index 8ae36f4c..c520b909 100644 --- a/kioslaves/imap4/mailheader.cc +++ b/kioslaves/imap4/mailheader.cc @@ -39,54 +39,54 @@ mailHeader::addHdrLine (mimeHdrLine * inLine) const TQCString label(addLine->getLabel()); TQCString value(addLine->getValue()); - if (!qstricmp (label, "Return-Path")) { + if (!tqstricmp (label, "Return-Path")) { returnpathAdr.parseAddress (value.data ()); goto out; } - if (!qstricmp (label, "Sender")) { + if (!tqstricmp (label, "Sender")) { senderAdr.parseAddress (value.data ()); goto out; } - if (!qstricmp (label, "From")) { + if (!tqstricmp (label, "From")) { fromAdr.parseAddress (value.data ()); goto out; } - if (!qstricmp (label, "Reply-To")) { + if (!tqstricmp (label, "Reply-To")) { replytoAdr.parseAddress (value.data ()); goto out; } - if (!qstricmp (label, "To")) { + if (!tqstricmp (label, "To")) { mailHeader::parseAddressList (value, &toAdr); goto out; } - if (!qstricmp (label, "CC")) { + if (!tqstricmp (label, "CC")) { mailHeader::parseAddressList (value, &ccAdr); goto out; } - if (!qstricmp (label, "BCC")) { + if (!tqstricmp (label, "BCC")) { mailHeader::parseAddressList (value, &bccAdr); goto out; } - if (!qstricmp (label, "Subject")) { + if (!tqstricmp (label, "Subject")) { _subject = value.simplifyWhiteSpace(); goto out; } - if (!qstricmp (label.data (), "Date")) { + if (!tqstricmp (label.data (), "Date")) { mDate = value; goto out; } - if (!qstricmp (label.data (), "Message-ID")) { + if (!tqstricmp (label.data (), "Message-ID")) { int start = value.findRev ('<'); int end = value.findRev ('>'); if (start < end) messageID = value.mid (start, end - start + 1); else { - qWarning("bad Message-ID"); + tqWarning("bad Message-ID"); /* messageID = value; */ } goto out; } - if (!qstricmp (label.data (), "In-Reply-To")) { + if (!tqstricmp (label.data (), "In-Reply-To")) { int start = value.findRev ('<'); int end = value.findRev ('>'); if (start < end) diff --git a/kioslaves/imap4/mimeheader.cc b/kioslaves/imap4/mimeheader.cc index 39af2c39..8b54b98c 100644 --- a/kioslaves/imap4/mimeheader.cc +++ b/kioslaves/imap4/mimeheader.cc @@ -77,7 +77,7 @@ mimeHeader::addHdrLine (mimeHdrLine * aHdrLine) if (addLine) { originalHdrLines.append (addLine); - if (qstrnicmp (addLine->getLabel (), "Content-", 8)) + if (tqstrnicmp (addLine->getLabel (), "Content-", 8)) { additionalHdrLines.append (addLine); } @@ -105,34 +105,34 @@ mimeHeader::addHdrLine (mimeHdrLine * aHdrLine) TQCString mimeValue = TQCString (aCStr, skip - cut + 1); // cutting of one because of 0x00 - if (!qstricmp (addLine->getLabel (), "Content-Disposition")) + if (!tqstricmp (addLine->getLabel (), "Content-Disposition")) { aList = &dispositionList; _contentDisposition = mimeValue; } - else if (!qstricmp (addLine->getLabel (), "Content-Type")) + else if (!tqstricmp (addLine->getLabel (), "Content-Type")) { aList = &typeList; contentType = mimeValue; } else - if (!qstricmp (addLine->getLabel (), "Content-Transfer-Encoding")) + if (!tqstricmp (addLine->getLabel (), "Content-Transfer-Encoding")) { contentEncoding = mimeValue; } - else if (!qstricmp (addLine->getLabel (), "Content-ID")) + else if (!tqstricmp (addLine->getLabel (), "Content-ID")) { contentID = mimeValue; } - else if (!qstricmp (addLine->getLabel (), "Content-Description")) + else if (!tqstricmp (addLine->getLabel (), "Content-Description")) { _contentDescription = mimeValue; } - else if (!qstricmp (addLine->getLabel (), "Content-MD5")) + else if (!tqstricmp (addLine->getLabel (), "Content-MD5")) { contentMD5 = mimeValue; } - else if (!qstricmp (addLine->getLabel (), "Content-Length")) + else if (!tqstricmp (addLine->getLabel (), "Content-Length")) { contentLength = mimeValue.toULong (); } @@ -463,7 +463,7 @@ mimeHeader::parsePart (mimeIO & useIO, const TQString& boundary) mbox = parseHeader (useIO); kdDebug(7116) << "mimeHeader::parsePart - parsing part '" << getType () << "'" << endl; - if (!qstrnicmp (getType (), "Multipart", 9)) + if (!tqstrnicmp (getType (), "Multipart", 9)) { retVal = parseBody (useIO, preNested, getTypeParm ("boundary")); //this is a message in mime format stuff setPreBody (preNested); @@ -473,7 +473,7 @@ mimeHeader::parsePart (mimeIO & useIO, const TQString& boundary) mimeHeader *aHeader = new mimeHeader; // set default type for multipart/digest - if (!qstrnicmp (getType (), "Multipart/Digest", 16)) + if (!tqstrnicmp (getType (), "Multipart/Digest", 16)) aHeader->setType ("Message/RFC822"); localRetVal = aHeader->parsePart (useIO, getTypeParm ("boundary")); @@ -481,7 +481,7 @@ mimeHeader::parsePart (mimeIO & useIO, const TQString& boundary) } while (localRetVal); //get nested stuff } - if (!qstrnicmp (getType (), "Message/RFC822", 14)) + if (!tqstrnicmp (getType (), "Message/RFC822", 14)) { mailHeader *msgHeader = new mailHeader; retVal = msgHeader->parsePart (useIO, boundary); @@ -515,13 +515,13 @@ mimeHeader::parseBody (mimeIO & useIO, TQCString & messageBody, { //check for the end of all parts if (!partEnd.isEmpty () - && !qstrnicmp (inputStr, partEnd.latin1 (), partEnd.length () - 1)) + && !tqstrnicmp (inputStr, partEnd.latin1 (), partEnd.length () - 1)) { retVal = 0; //end of these parts break; } else if (!partBoundary.isEmpty () - && !qstrnicmp (inputStr, partBoundary.latin1 (), + && !tqstrnicmp (inputStr, partBoundary.latin1 (), partBoundary.length () - 1)) { retVal = 1; //continue with next part diff --git a/kitchensync/libqopensync/group.cpp b/kitchensync/libqopensync/group.cpp index bc94e220..85f6384d 100644 --- a/kitchensync/libqopensync/group.cpp +++ b/kitchensync/libqopensync/group.cpp @@ -56,7 +56,7 @@ TQStringList GroupConfig::activeObjectTypes() const TQString message; if ( !document.setContent( &file, &message ) ) { - qDebug( "Error on loading %s: %s", fileName.latin1(), message.latin1() ); + tqDebug( "Error on loading %s: %s", fileName.latin1(), message.latin1() ); return TQStringList(); } file.close(); diff --git a/kitchensync/libqopensync/groupenv.cpp b/kitchensync/libqopensync/groupenv.cpp index bd6b3b68..f392fd10 100644 --- a/kitchensync/libqopensync/groupenv.cpp +++ b/kitchensync/libqopensync/groupenv.cpp @@ -105,7 +105,7 @@ Group GroupEnv::addGroup( const TQString &name ) if ( !osync_group_env_add_group( mGroupEnv, ogroup, &error ) ) { Result res( &error ); - qDebug( "Error on adding group: %s", res.message().latin1() ); + tqDebug( "Error on adding group: %s", res.message().latin1() ); } return group; diff --git a/kitchensync/libqopensync/member.cpp b/kitchensync/libqopensync/member.cpp index 35cb0463..b672dd0f 100644 --- a/kitchensync/libqopensync/member.cpp +++ b/kitchensync/libqopensync/member.cpp @@ -43,7 +43,7 @@ bool Member::isValid() const return false; if ( !osync_member_instance_plugin( mMember, pluginName().utf8(), &error ) ) { - qDebug( "Plugin %s is not valid: %s", pluginName().latin1(), osync_error_print( &error ) ); + tqDebug( "Plugin %s is not valid: %s", pluginName().latin1(), osync_error_print( &error ) ); osync_error_free( &error ); return false; } diff --git a/kitchensync/opensyncdbus/dbusclient.cpp b/kitchensync/opensyncdbus/dbusclient.cpp index f53ee74e..21d4f798 100644 --- a/kitchensync/opensyncdbus/dbusclient.cpp +++ b/kitchensync/opensyncdbus/dbusclient.cpp @@ -47,12 +47,12 @@ void OpenSyncService::setConnection( TQDBusConnection *connection ) bool OpenSyncService::handleMethodCall( const TQDBusMessage &message ) { - qDebug( "OpenSyncService::handleMethodCall()" ); + tqDebug( "OpenSyncService::handleMethodCall()" ); - qDebug( " Interface: %s", message.interface().latin1() ); - qDebug( " Path: %s", message.path().latin1() ); - qDebug( " Member: %s", message.member().latin1() ); - qDebug( " Sender: %s", message.sender().latin1() ); + tqDebug( " Interface: %s", message.interface().latin1() ); + tqDebug( " Path: %s", message.path().latin1() ); + tqDebug( " Member: %s", message.member().latin1() ); + tqDebug( " Sender: %s", message.sender().latin1() ); if ( message.interface() != "org.opensync.SyncEngine" ) return false; @@ -258,7 +258,7 @@ int main( int argc, char *argv[] ) TQDBusConnection::SessionBus ); if ( !connection.isConnected() ) { - qFatal("Cannot connect to session bus"); + tqFatal("Cannot connect to session bus"); } connection.requestName( "org.opensync.SyncEngine", diff --git a/kitchensync/src/mainwidget.cpp b/kitchensync/src/mainwidget.cpp index 51543c05..161a1d44 100644 --- a/kitchensync/src/mainwidget.cpp +++ b/kitchensync/src/mainwidget.cpp @@ -175,9 +175,9 @@ void MainWidget::sync( SyncProcess *syncProcess ) syncProcess->reinitEngine(); QSync::Result result = syncProcess->engine()->synchronize(); if ( result ) { - qDebug( "%s", result.message().latin1() ); + tqDebug( "%s", result.message().latin1() ); } else { - qDebug( "synchronization worked" ); + tqDebug( "synchronization worked" ); } } } diff --git a/kitchensync/src/syncprocessmanager.cpp b/kitchensync/src/syncprocessmanager.cpp index fda111ef..95c49748 100644 --- a/kitchensync/src/syncprocessmanager.cpp +++ b/kitchensync/src/syncprocessmanager.cpp @@ -110,7 +110,7 @@ void SyncProcessManager::addGroup( const TQString &name ) emit changed(); } else - qDebug( "Try to add duplicate" ); + tqDebug( "Try to add duplicate" ); } void SyncProcessManager::remove( SyncProcess *syncProcess ) diff --git a/kmail/bodypartformatterfactory_p.h b/kmail/bodypartformatterfactory_p.h index f18bc22a..088a17f2 100644 --- a/kmail/bodypartformatterfactory_p.h +++ b/kmail/bodypartformatterfactory_p.h @@ -47,7 +47,7 @@ namespace KMail { namespace BodyPartFormatterFactoryPrivate { struct ltstr { bool operator()( const char * s1, const char * s2 ) const { - return qstricmp( s1, s2 ) < 0; + return tqstricmp( s1, s2 ) < 0; } }; diff --git a/kmail/kmkernel.cpp b/kmail/kmkernel.cpp index ef6ee4f7..2e204ab5 100644 --- a/kmail/kmkernel.cpp +++ b/kmail/kmkernel.cpp @@ -960,7 +960,7 @@ int KMKernel::dcopAddMessage( const TQString & foldername,const KURL & msgUrl, msg = 0; } } else { - //qDebug( "duplicate: " + msgId + "; subj: " + msg->subject() + ", from: " + msgId = msg->fromStrip()); + //tqDebug( "duplicate: " + msgId + "; subj: " + msg->subject() + ", from: " + msgId = msg->fromStrip()); retval = -4; } } else { diff --git a/kmail/kmmessage.cpp b/kmail/kmmessage.cpp index 469858a4..9ad91070 100644 --- a/kmail/kmmessage.cpp +++ b/kmail/kmmessage.cpp @@ -3050,9 +3050,9 @@ void applyHeadersToMessagePart( DwHeaders& headers, KMMessagePart* aPart ) DwParameter *param = ct.FirstParameter(); while(param) { - if (!qstricmp(param->Attribute().c_str(), "charset")) + if (!tqstricmp(param->Attribute().c_str(), "charset")) aPart->setCharset(TQCString(param->Value().c_str()).lower()); - else if (!qstrnicmp(param->Attribute().c_str(), "name*", 5)) + else if (!tqstrnicmp(param->Attribute().c_str(), "name*", 5)) aPart->setName(KMMsgBase::decodeRFC2231String(KMMsgBase::extractRFC2231HeaderField( param->Value().c_str(), "name" ))); else { additionalCTypeParams += ';'; diff --git a/kmail/kmsearchpattern.cpp b/kmail/kmsearchpattern.cpp index 1d6fd95d..630c6f13 100644 --- a/kmail/kmsearchpattern.cpp +++ b/kmail/kmsearchpattern.cpp @@ -148,7 +148,7 @@ KMSearchRule::Function KMSearchRule::configValueToFunc( const char * str ) { return FuncNone; for ( int i = 0 ; i < numFuncConfigNames ; ++i ) - if ( qstricmp( funcConfigNames[i], str ) == 0 ) return (Function)i; + if ( tqstricmp( funcConfigNames[i], str ) == 0 ) return (Function)i; return FuncNone; } diff --git a/kmail/kmsender.cpp b/kmail/kmsender.cpp index eec0d6e0..500cb7e7 100644 --- a/kmail/kmsender.cpp +++ b/kmail/kmsender.cpp @@ -266,8 +266,8 @@ static bool messageIsDispositionNotificationReport( KMMessage *msg ) DwMediaType& ct = msg->dwContentType(); DwParameter *param = ct.FirstParameter(); while( param ) { - if ( !qstricmp( param->Attribute().c_str(), "report-type") - && !qstricmp( param->Value().c_str(), "disposition-notification" ) ) + if ( !tqstricmp( param->Attribute().c_str(), "report-type") + && !tqstricmp( param->Value().c_str(), "disposition-notification" ) ) return true; else param = param->Next(); diff --git a/kmailcvt/filter_kmail_maildir.cxx b/kmailcvt/filter_kmail_maildir.cxx index 2a196156..cc2c1d3b 100644 --- a/kmailcvt/filter_kmail_maildir.cxx +++ b/kmailcvt/filter_kmail_maildir.cxx @@ -140,7 +140,7 @@ TQString FilterKMail_maildir::getMessageFlags( FilterInfo *info, const TQString& status_flag = seperate; status_flag.remove("X-Status: "); status_flag = status_flag.stripWhiteSpace(); - // qDebug("status_flag: %s", status_flag.latin1() ); + // tqDebug("status_flag: %s", status_flag.latin1() ); break; } } diff --git a/kmailcvt/filter_mailapp.cxx b/kmailcvt/filter_mailapp.cxx index a9351977..90e05aff 100644 --- a/kmailcvt/filter_mailapp.cxx +++ b/kmailcvt/filter_mailapp.cxx @@ -47,7 +47,7 @@ void FilterMailApp::import(FilterInfo *info) TQString directory = KFileDialog::getExistingDirectory( TQDir::homeDirPath(), info->parent() ); - //qDebug("starting by looking in directory: %s", directory.latin1()); + //tqDebug("starting by looking in directory: %s", directory.latin1()); if ( directory.isEmpty() ) { info->addLog( i18n("No directory selected.")); info->addLog( i18n("No files found for import.")); diff --git a/kmailcvt/filter_mbox.cxx b/kmailcvt/filter_mbox.cxx index 76b37668..1ecc6c79 100644 --- a/kmailcvt/filter_mbox.cxx +++ b/kmailcvt/filter_mbox.cxx @@ -95,7 +95,7 @@ void FilterMBox::import(FilterInfo *info) x_status_flag = seperate; x_status_flag.remove("X-Status: "); x_status_flag = x_status_flag.stripWhiteSpace(); - // qDebug("x_status_flag: %s", x_status_flag.latin1() ); + // tqDebug("x_status_flag: %s", x_status_flag.latin1() ); } // workaround to fix hang if a corrupted mbox contains some diff --git a/kmobile/devices/gnokii/gnokii_mobile.cpp b/kmobile/devices/gnokii/gnokii_mobile.cpp index 48c3b8ae..1271d3ce 100644 --- a/kmobile/devices/gnokii/gnokii_mobile.cpp +++ b/kmobile/devices/gnokii/gnokii_mobile.cpp @@ -147,8 +147,8 @@ static gn_connection_type connectionToValue( TQString connectionName ) bool KMobileGnokii::setGnokiiStateMachine() { // set the state machine to our configuration - qstrncpy( state.config.model, m_modelnr.utf8(), sizeof(state.config.model)-1 ); - qstrncpy( state.config.port_device, m_port.utf8(), sizeof(state.config.port_device)-1 ); + tqstrncpy( state.config.model, m_modelnr.utf8(), sizeof(state.config.model)-1 ); + tqstrncpy( state.config.port_device, m_port.utf8(), sizeof(state.config.port_device)-1 ); state.config.connection_type = connectionToValue(m_connection); state.config.serial_baudrate = m_baud.toUInt(); return true; diff --git a/knode/knarticlecollection.cpp b/knode/knarticlecollection.cpp index cbb4779b..d39d4d83 100644 --- a/knode/knarticlecollection.cpp +++ b/knode/knarticlecollection.cpp @@ -254,7 +254,7 @@ int KNArticleVector::indexForId(int id) return mid; else { #ifndef NDEBUG - qDebug("knode: KNArticleVector::indexForId() : id=%d not found", id); + tqDebug("knode: KNArticleVector::indexForId() : id=%d not found", id); #endif return -1; } @@ -288,13 +288,13 @@ int KNArticleVector::indexForMsgId(const TQCString &id) if(found) { /*#ifndef NDEBUG - qDebug("KNArticleVector::indexForMsgID() : msgID=%s found after %d compares", id.data(), cnt); + tqDebug("KNArticleVector::indexForMsgID() : msgID=%s found after %d compares", id.data(), cnt); #endif*/ return mid; } else { /*#ifndef NDEBUG - qDebug("knode: KNArticleVector::indexForMsgID() : msgID=%s not found", id.data()); + tqDebug("knode: KNArticleVector::indexForMsgID() : msgID=%s not found", id.data()); #endif*/ return -1; } diff --git a/knode/kngroup.cpp b/knode/kngroup.cpp index c42aab07..087eb737 100644 --- a/knode/kngroup.cpp +++ b/knode/kngroup.cpp @@ -692,7 +692,7 @@ void KNGroup::buildThreads(int cnt, KNProtocolClient *client) // this method is called from the nntp-thread!!! #ifndef NDEBUG - qDebug("knode: KNGroup::buildThreads() : start = %d end = %d",start,end); + tqDebug("knode: KNGroup::buildThreads() : start = %d end = %d",start,end); #endif //resort old hdrs @@ -705,7 +705,7 @@ void KNGroup::buildThreads(int cnt, KNProtocolClient *client) if(ref) { // this method is called from the nntp-thread!!! #ifndef NDEBUG - qDebug("knode: %d: old %d new %d",art->id(), oldRef, art->idRef()); + tqDebug("knode: %d: old %d new %d",art->id(), oldRef, art->idRef()); #endif resortCnt++; art->setChanged(true); @@ -826,7 +826,7 @@ void KNGroup::buildThreads(int cnt, KNProtocolClient *client) if(isLoop) { // this method is called from the nntp-thread!!! #ifndef NDEBUG - qDebug("knode: Sorting : loop in %d",startId); + tqDebug("knode: Sorting : loop in %d",startId); #endif art=at(idx); art->setIdRef(0); @@ -859,9 +859,9 @@ void KNGroup::buildThreads(int cnt, KNProtocolClient *client) // this method is called from the nntp-thread!!! #ifndef NDEBUG - qDebug("knode: Sorting : %d headers resorted", resortCnt); - qDebug("knode: Sorting : %d references of %d found", foundCnt, refCnt); - qDebug("knode: Sorting : %d references of %d sorted by subject", bySubCnt, refCnt); + tqDebug("knode: Sorting : %d headers resorted", resortCnt); + tqDebug("knode: Sorting : %d references of %d found", foundCnt, refCnt); + tqDebug("knode: Sorting : %d references of %d sorted by subject", bySubCnt, refCnt); #endif } diff --git a/knode/knnntpclient.cpp b/knode/knnntpclient.cpp index efc3b18c..8cedae08 100644 --- a/knode/knnntpclient.cpp +++ b/knode/knnntpclient.cpp @@ -61,7 +61,7 @@ void KNNntpClient::processJob() break; default: #ifndef NDEBUG - qDebug("knode: KNNntpClient::processJob(): mismatched job"); + tqDebug("knode: KNNntpClient::processJob(): mismatched job"); #endif break; } @@ -108,7 +108,7 @@ void KNNntpClient::doFetchGroups() s = strchr(line,' '); if(!s) { #ifndef NDEBUG - qDebug("knode: retrieved broken group-line - ignoring"); + tqDebug("knode: retrieved broken group-line - ignoring"); #endif } else { s[0] = 0; // cut string @@ -175,7 +175,7 @@ void KNNntpClient::doFetchGroups() while (*s != '\0' && *s != '\t' && *s != ' ') s++; if (*s == '\0') { #ifndef NDEBUG - qDebug("knode: retrieved broken group-description - ignoring"); + tqDebug("knode: retrieved broken group-description - ignoring"); #endif } else { s[0] = 0; // terminate groupname @@ -244,7 +244,7 @@ void KNNntpClient::doCheckNewGroups() s = strchr(line,' '); if(!s) { #ifndef NDEBUG - qDebug("knode: retrieved broken group-line - ignoring"); + tqDebug("knode: retrieved broken group-line - ignoring"); #endif } else { s[0] = 0; // cut string @@ -297,7 +297,7 @@ void KNNntpClient::doCheckNewGroups() while (*s !=- '\0' && *s != '\t' && *s != ' ') s++; if (*s == '\0') { #ifndef NDEBUG - qDebug("knode: retrieved broken group-description - ignoring"); + tqDebug("knode: retrieved broken group-description - ignoring"); #endif } else { while (*s == ' ' || *s == '\t') s++; // go on to the description @@ -378,17 +378,17 @@ void KNNntpClient::doFetchNewHeaders() oldlast=target->lastNr(); toFetch=last-oldlast; - //qDebug("knode: last %d oldlast %d toFetch %d\n",last,oldlast,toFetch); + //tqDebug("knode: last %d oldlast %d toFetch %d\n",last,oldlast,toFetch); if(toFetch<=0) { - //qDebug("knode: No new Articles in group\n"); + //tqDebug("knode: No new Articles in group\n"); target->setLastNr(last); // don't get stuck when the article numbers wrap return; } if(toFetch>target->maxFetch()) { toFetch=target->maxFetch(); - //qDebug("knode: Fetching only %d articles\n",toFetch); + //tqDebug("knode: Fetching only %d articles\n",toFetch); } progressValue = 100; @@ -413,7 +413,7 @@ void KNNntpClient::doFetchNewHeaders() } } - //qDebug("knode: KNNntpClient::doFetchNewHeaders() : xover %d-%d", last-toFetch+1, last); + //tqDebug("knode: KNNntpClient::doFetchNewHeaders() : xover %d-%d", last-toFetch+1, last); cmd.sprintf("xover %d-%d",last-toFetch+1,last); if (!sendCommand(cmd,rep)) return; @@ -512,7 +512,7 @@ void KNNntpClient::doPostArticle() if (rep==223) { // 223 n article retrieved - request text separately #ifndef NDEBUG - qDebug("knode: STAT successful, we have probably already sent this article."); + tqDebug("knode: STAT successful, we have probably already sent this article."); #endif return; // the article is already on the server, lets put it silently into the send folder } @@ -529,7 +529,7 @@ void KNNntpClient::doPostArticle() art->messageID()->from7BitString(s.mid(start,end-start+1)); art->assemble(); #ifndef NDEBUG - qDebug("knode: using the message-id recommended by the server: %s",s.mid(start,end-start+1).data()); + tqDebug("knode: using the message-id recommended by the server: %s",s.mid(start,end-start+1).data()); #endif } } @@ -595,7 +595,7 @@ bool KNNntpClient::openConnection() if (rep==500) { #ifndef NDEBUG - qDebug("knode: \"MODE READER\" command not recognized."); + tqDebug("knode: \"MODE READER\" command not recognized."); #endif } else if ( ( rep < 200 ) || ( rep > 299 ) ) { // RFC977: 2xx - Command ok @@ -607,7 +607,7 @@ bool KNNntpClient::openConnection() // logon now, some newsserver send a incomplete group list otherwise if (account.needsLogon() && !account.user().isEmpty()) { - //qDebug("knode: user: %s",account.user().latin1()); + //tqDebug("knode: user: %s",account.user().latin1()); TQCString command = "AUTHINFO USER "; command += account.user().local8Bit(); @@ -615,7 +615,7 @@ bool KNNntpClient::openConnection() return false; if (rep==381) { // 381 PASS required - //qDebug("knode: Password required"); + //tqDebug("knode: Password required"); if (!account.pass().length()) { job->setErrorString(i18n("Authentication failed.\nCheck your username and password.")); @@ -623,7 +623,7 @@ bool KNNntpClient::openConnection() return false; } - //qDebug("knode: pass: %s",account.pass().latin1()); + //tqDebug("knode: pass: %s",account.pass().latin1()); command = "AUTHINFO PASS "; command += account.pass().local8Bit(); @@ -632,11 +632,11 @@ bool KNNntpClient::openConnection() if (rep==281) { // 281 authorization success #ifndef NDEBUG - qDebug("knode: Authorization successful"); + tqDebug("knode: Authorization successful"); #endif } else { #ifndef NDEBUG - qDebug("knode: Authorization failed"); + tqDebug("knode: Authorization failed"); #endif job->setErrorString(i18n("Authentication failed.\nCheck your username and password.\n\n%1").arg(getCurrentLine())); job->setAuthError(true); @@ -646,12 +646,12 @@ bool KNNntpClient::openConnection() } else { if (rep==281) { // 281 authorization success #ifndef NDEBUG - qDebug("knode: Authorization successful"); + tqDebug("knode: Authorization successful"); #endif } else { if ((rep==482)||(rep==500)) { //482 Authentication rejected #ifndef NDEBUG - qDebug("knode: Authorization failed"); // we don't care, the server can refuse the info + tqDebug("knode: Authorization failed"); // we don't care, the server can refuse the info #endif } else { handleErrors(); @@ -675,7 +675,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep) return false; if (rep==480) { // 480 requesting authorization - //qDebug("knode: Authorization requested"); + //tqDebug("knode: Authorization requested"); if (!account.user().length()) { job->setErrorString(i18n("Authentication failed.\nCheck your username and password.")); @@ -684,7 +684,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep) return false; } - //qDebug("knode: user: %s",account.user().data()); + //tqDebug("knode: user: %s",account.user().data()); TQCString command = "AUTHINFO USER "; command += account.user().local8Bit(); @@ -692,7 +692,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep) return false; if (rep==381) { // 381 PASS required - //qDebug("knode: Password required"); + //tqDebug("knode: Password required"); if (!account.pass().length()) { job->setErrorString(i18n("Authentication failed.\nCheck your username and password.\n\n%1").arg(getCurrentLine())); @@ -701,7 +701,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep) return false; } - //qDebug("knode: pass: %s",account.pass().data()); + //tqDebug("knode: pass: %s",account.pass().data()); command = "AUTHINFO PASS "; command += account.pass().local8Bit(); @@ -711,7 +711,7 @@ bool KNNntpClient::sendCommand(const TQCString &cmd, int &rep) if (rep==281) { // 281 authorization success #ifndef NDEBUG - qDebug("knode: Authorization successful"); + tqDebug("knode: Authorization successful"); #endif if (!KNProtocolClient::sendCommand(cmd,rep)) // retry the original command return false; diff --git a/knode/knprotocolclient.cpp b/knode/knprotocolclient.cpp index dc1a299f..8289d02e 100644 --- a/knode/knprotocolclient.cpp +++ b/knode/knprotocolclient.cpp @@ -57,9 +57,9 @@ KNProtocolClient::~KNProtocolClient() void KNProtocolClient::run() { if (0!=pthread_setcancelstate(PTHREAD_CANCEL_ENABLE,NULL)) - qWarning("pthread_setcancelstate failed!"); + tqWarning("pthread_setcancelstate failed!"); if (0!= pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,NULL)) - qWarning("pthread_setcanceltype failed!"); + tqWarning("pthread_setcanceltype failed!"); signal(SIGPIPE,SIG_IGN); // ignore sigpipe waitForWork(); @@ -112,13 +112,13 @@ void KNProtocolClient::waitForWork() // if select() returns early because of a signal if (selectRet == 0) { #ifndef NDEBUG - qDebug("knode: KNProtocolClient::waitForWork(): hold time elapsed, closing connection."); + tqDebug("knode: KNProtocolClient::waitForWork(): hold time elapsed, closing connection."); #endif closeConnection(); // nothing happend... } else { if (((selectRet > 0)&&(!FD_ISSET(fdPipeIn,&fdsR)))||(selectRet == -1)) { #ifndef NDEBUG - qDebug("knode: KNProtocolClient::waitForWork(): connection broken, closing it"); + tqDebug("knode: KNProtocolClient::waitForWork(): connection broken, closing it"); #endif closeSocket(); } @@ -139,7 +139,7 @@ void KNProtocolClient::waitForWork() sendSignal(TSjobStarted); if (job) { - // qDebug("knode: KNProtocolClient::waitForWork(): got job"); + // tqDebug("knode: KNProtocolClient::waitForWork(): got job"); if (job->net()&&!(account == *job->account())) { // server changed account = *job->account(); @@ -185,7 +185,7 @@ bool KNProtocolClient::openConnection() sendSignal(TSconnect); #ifndef NDEBUG - qDebug("knode: KNProtocolClient::openConnection(): opening connection"); + tqDebug("knode: KNProtocolClient::openConnection(): opening connection"); #endif if (account.server().isEmpty()) { @@ -225,7 +225,7 @@ void KNProtocolClient::closeConnection() timeval tv; #ifndef NDEBUG - qDebug("knode: KNProtocolClient::closeConnection(): closing connection"); + tqDebug("knode: KNProtocolClient::closeConnection(): closing connection"); #endif FD_ZERO(&fdsW); @@ -335,7 +335,7 @@ bool KNProtocolClient::getNextLine() thisLine = input; inputEnd = input+div-1; #ifndef NDEBUG - qDebug("knode: KNProtocolClient::getNextLine(): input buffer enlarged"); + tqDebug("knode: KNProtocolClient::getNextLine(): input buffer enlarged"); #endif } if (!waitForRead()) @@ -443,7 +443,7 @@ void KNProtocolClient::handleErrors() void KNProtocolClient::sendSignal(threadSignal s) { int signal=(int)s; - // qDebug("knode: KNProtcolClient::sendSignal() : sending signal to main thread"); + // tqDebug("knode: KNProtcolClient::sendSignal() : sending signal to main thread"); write(fdPipeOut, &signal, sizeof(int)); } @@ -485,7 +485,7 @@ bool KNProtocolClient::waitForRead() if (ret > 0) { if (FD_ISSET(fdPipeIn,&fdsR)) { // stop signal #ifndef NDEBUG - qDebug("knode: KNProtocolClient::waitForRead(): got stop signal"); + tqDebug("knode: KNProtocolClient::waitForRead(): got stop signal"); #endif closeConnection(); return false; @@ -547,7 +547,7 @@ bool KNProtocolClient::waitForWrite() if (ret > 0) { if (FD_ISSET(fdPipeIn,&fdsR)) { // stop signal #ifndef NDEBUG - qDebug("knode: KNProtocolClient::waitForWrite(): got stop signal"); + tqDebug("knode: KNProtocolClient::waitForWrite(): got stop signal"); #endif closeConnection(); return false; diff --git a/kode/kwsdl/compiler.cpp b/kode/kwsdl/compiler.cpp index e3ccf4f8..8811c7e4 100644 --- a/kode/kwsdl/compiler.cpp +++ b/kode/kwsdl/compiler.cpp @@ -70,7 +70,7 @@ void Compiler::download() if ( provider.get( mWSDLUrl, fileName ) ) { TQFile file( fileName ); if ( !file.open( IO_ReadOnly ) ) { - qDebug( "Unable to download schema file %s", mWSDLUrl.latin1() ); + tqDebug( "Unable to download schema file %s", mWSDLUrl.latin1() ); provider.cleanUp(); return; } @@ -79,7 +79,7 @@ void Compiler::download() int errorLine, errorCol; TQDomDocument doc; if ( !doc.setContent( &file, true, &errorMsg, &errorLine, &errorCol ) ) { - qDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol ); + tqDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol ); return; } diff --git a/kode/kwsdl/kung/binaryinputfield.cpp b/kode/kwsdl/kung/binaryinputfield.cpp index 049736c1..ea7c1739 100644 --- a/kode/kwsdl/kung/binaryinputfield.cpp +++ b/kode/kwsdl/kung/binaryinputfield.cpp @@ -48,7 +48,7 @@ BinaryInputField::BinaryInputField( const TQString &name, const TQString &typeNa void BinaryInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "BinaryInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "BinaryInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/boolinputfield.cpp b/kode/kwsdl/kung/boolinputfield.cpp index e3eb3eef..88311266 100644 --- a/kode/kwsdl/kung/boolinputfield.cpp +++ b/kode/kwsdl/kung/boolinputfield.cpp @@ -32,7 +32,7 @@ BoolInputField::BoolInputField( const TQString &name, const Schema::SimpleType * void BoolInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "BoolInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "BoolInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/complexbaseinputfield.cpp b/kode/kwsdl/kung/complexbaseinputfield.cpp index 7466029c..c43f211d 100644 --- a/kode/kwsdl/kung/complexbaseinputfield.cpp +++ b/kode/kwsdl/kung/complexbaseinputfield.cpp @@ -38,7 +38,7 @@ ComplexBaseInputField::ComplexBaseInputField( const TQString &name, const Schema bool isList = ((*elemIt).maxOccurs() == UNBOUNDED); InputField *field = InputFieldFactory::self()->createField( (*elemIt).name(), (*elemIt).typeName(), isList ); if ( !field ) { - qDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); + tqDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); } else { appendChild( field ); } @@ -49,7 +49,7 @@ ComplexBaseInputField::ComplexBaseInputField( const TQString &name, const Schema for ( attrIt = attributes.begin(); attrIt != attributes.end(); ++attrIt ) { InputField *field = InputFieldFactory::self()->createField( (*attrIt).name(), (*attrIt).typeName() ); if ( !field ) { - qDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); + tqDebug( "ComplexBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); } else { appendChild( field ); } @@ -59,7 +59,7 @@ ComplexBaseInputField::ComplexBaseInputField( const TQString &name, const Schema void ComplexBaseInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "ComplexBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "ComplexBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } @@ -74,7 +74,7 @@ void ComplexBaseInputField::setXMLData( const TQDomElement &element ) if ( !child.isNull() ) { InputField *field = childField( child.tagName() ); if ( !field ) { - qDebug( "ComplexBaseInputField: Child field %s does not exists", child.tagName().latin1() ); + tqDebug( "ComplexBaseInputField: Child field %s does not exists", child.tagName().latin1() ); } else { field->setXMLData( child ); } @@ -92,7 +92,7 @@ void ComplexBaseInputField::setXMLData( const TQDomElement &element ) InputField *field = childField( attr.name() ); if ( !field ) { - qDebug( "ComplexBaseInputField: Child field %s does not exists", attr.name().latin1() ); + tqDebug( "ComplexBaseInputField: Child field %s does not exists", attr.name().latin1() ); } else { field->setData( attr.value() ); } @@ -108,7 +108,7 @@ void ComplexBaseInputField::xmlData( TQDomDocument &document, TQDomElement &pare for ( elemIt = elements.begin(); elemIt != elements.end(); ++elemIt ) { InputField *field = childField( (*elemIt).name() ); if ( !field ) { - qDebug( "ComplexBaseInputField: No child found" ); + tqDebug( "ComplexBaseInputField: No child found" ); } else { field->xmlData( document, element ); } @@ -119,7 +119,7 @@ void ComplexBaseInputField::xmlData( TQDomDocument &document, TQDomElement &pare for ( attrIt = attributes.begin(); attrIt != attributes.end(); ++attrIt ) { InputField *field = childField( (*attrIt).name() ); if ( !field ) { - qDebug( "ComplexBaseInputField: No child found" ); + tqDebug( "ComplexBaseInputField: No child found" ); } else { element.setAttribute( field->name(), field->data() ); } diff --git a/kode/kwsdl/kung/dateinputfield.cpp b/kode/kwsdl/kung/dateinputfield.cpp index 56132a4e..cb24670f 100644 --- a/kode/kwsdl/kung/dateinputfield.cpp +++ b/kode/kwsdl/kung/dateinputfield.cpp @@ -32,7 +32,7 @@ DateInputField::DateInputField( const TQString &name, const Schema::SimpleType * void DateInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "DateInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "DateInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/dispatcher.cpp b/kode/kwsdl/kung/dispatcher.cpp index 9d2ecc23..58ac17d1 100644 --- a/kode/kwsdl/kung/dispatcher.cpp +++ b/kode/kwsdl/kung/dispatcher.cpp @@ -71,7 +71,7 @@ void Dispatcher::run() void Dispatcher::nextMessage() { if ( !mConversationManager ) { - qDebug( "No conversation manager set... aborting" ); + tqDebug( "No conversation manager set... aborting" ); return; } @@ -115,7 +115,7 @@ void Dispatcher::nextMessage() body.appendChild( method ); if ( mTransport ) { - qDebug( "%s", doc.toString( 2 ).latin1() ); + tqDebug( "%s", doc.toString( 2 ).latin1() ); mTransport->query( doc.toString( 2 ) ); } } else @@ -124,7 +124,7 @@ void Dispatcher::nextMessage() void Dispatcher::result( const TQString &xml ) { - qDebug( "Got data %s", xml.latin1() ); + tqDebug( "Got data %s", xml.latin1() ); KWSDL::Message message = mWSDL.findOutputMessage( mCurrentMessage ); InputField *field = new PageInputField( message.name(), message ); diff --git a/kode/kwsdl/kung/doubleinputfield.cpp b/kode/kwsdl/kung/doubleinputfield.cpp index 78f73bcd..39f22774 100644 --- a/kode/kwsdl/kung/doubleinputfield.cpp +++ b/kode/kwsdl/kung/doubleinputfield.cpp @@ -34,7 +34,7 @@ DoubleInputField::DoubleInputField( const TQString &name, const TQString &typeNa void DoubleInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "DoubleInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "DoubleInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/enuminputfield.cpp b/kode/kwsdl/kung/enuminputfield.cpp index f290803b..30c11670 100644 --- a/kode/kwsdl/kung/enuminputfield.cpp +++ b/kode/kwsdl/kung/enuminputfield.cpp @@ -36,7 +36,7 @@ EnumInputField::EnumInputField( const TQString &name, const Schema::SimpleType * void EnumInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "EnumInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "EnumInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/inputfieldfactory.cpp b/kode/kwsdl/kung/inputfieldfactory.cpp index 42905aee..8359eef6 100644 --- a/kode/kwsdl/kung/inputfieldfactory.cpp +++ b/kode/kwsdl/kung/inputfieldfactory.cpp @@ -109,7 +109,7 @@ InputField *InputFieldFactory::createBasicField( const TQString &name, const TQS } else if ( typeName == "base64Binary" ) { return new BinaryInputField( name, typeName, type ); } else { - qDebug( "InputFieldFactory: Unknown type %s", typeName.latin1() ); + tqDebug( "InputFieldFactory: Unknown type %s", typeName.latin1() ); return 0; } } diff --git a/kode/kwsdl/kung/integerinputfield.cpp b/kode/kwsdl/kung/integerinputfield.cpp index 022ec0d8..76d48cd5 100644 --- a/kode/kwsdl/kung/integerinputfield.cpp +++ b/kode/kwsdl/kung/integerinputfield.cpp @@ -36,7 +36,7 @@ IntegerInputField::IntegerInputField( const TQString &name, const TQString &type void IntegerInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "IntegerInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "IntegerInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/listinputfield.cpp b/kode/kwsdl/kung/listinputfield.cpp index 6bc1d824..4a6921c0 100644 --- a/kode/kwsdl/kung/listinputfield.cpp +++ b/kode/kwsdl/kung/listinputfield.cpp @@ -55,7 +55,7 @@ void ListInputField::setXMLData( const TQDomElement &element ) field->setXMLData( child ); appendChild( field ); } else - qDebug( "ListInputField: Unable to create field of type %s", mTypeName.latin1() ); + tqDebug( "ListInputField: Unable to create field of type %s", mTypeName.latin1() ); } node = node.nextSibling(); @@ -131,7 +131,7 @@ void ListWidget::add() { InputField *field = InputFieldFactory::self()->createField( mName, mType ); if ( !field ) { - qDebug( "ListInputField: Unable to create field of type %s", mType.latin1() ); + tqDebug( "ListInputField: Unable to create field of type %s", mType.latin1() ); return; } diff --git a/kode/kwsdl/kung/loader.cpp b/kode/kwsdl/kung/loader.cpp index 8b0281ac..273b2312 100644 --- a/kode/kwsdl/kung/loader.cpp +++ b/kode/kwsdl/kung/loader.cpp @@ -53,7 +53,7 @@ void Loader::download() if ( provider.get( mWSDLUrl, fileName ) ) { TQFile file( fileName ); if ( !file.open( IO_ReadOnly ) ) { - qDebug( "Unable to download wsdl file %s", mWSDLUrl.latin1() ); + tqDebug( "Unable to download wsdl file %s", mWSDLUrl.latin1() ); provider.cleanUp(); return; } @@ -62,7 +62,7 @@ void Loader::download() int errorLine, errorCol; TQDomDocument doc; if ( !doc.setContent( &file, true, &errorMsg, &errorLine, &errorCol ) ) { - qDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol ); + tqDebug( "%s at (%d,%d)", errorMsg.latin1(), errorLine, errorCol ); return; } diff --git a/kode/kwsdl/kung/pageinputfield.cpp b/kode/kwsdl/kung/pageinputfield.cpp index 96a758c3..b1cf11e0 100644 --- a/kode/kwsdl/kung/pageinputfield.cpp +++ b/kode/kwsdl/kung/pageinputfield.cpp @@ -35,7 +35,7 @@ PageInputField::PageInputField( const TQString &name, const KWSDL::Message &mess for ( it = parts.begin(); it != parts.end(); ++it ) { InputField *field = InputFieldFactory::self()->createField( (*it).name(), (*it).type() ); if ( !field ) { - qDebug( "PageInputField: Unable to create input field for %s (%s)", (*it).name().latin1(), (*it).type().latin1() ); + tqDebug( "PageInputField: Unable to create input field for %s (%s)", (*it).name().latin1(), (*it).type().latin1() ); } else { appendChild( field ); } @@ -45,7 +45,7 @@ PageInputField::PageInputField( const TQString &name, const KWSDL::Message &mess void PageInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "PageInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "PageInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } @@ -55,7 +55,7 @@ void PageInputField::setXMLData( const TQDomElement &element ) if ( !child.isNull() ) { InputField *field = childField( child.tagName() ); if ( !field ) { - qDebug( "PageInputField: Child field %s does not exists", child.tagName().latin1() ); + tqDebug( "PageInputField: Child field %s does not exists", child.tagName().latin1() ); } else { field->setXMLData( child ); } diff --git a/kode/kwsdl/kung/simplebaseinputfield.cpp b/kode/kwsdl/kung/simplebaseinputfield.cpp index 0198723c..5bd4e36b 100644 --- a/kode/kwsdl/kung/simplebaseinputfield.cpp +++ b/kode/kwsdl/kung/simplebaseinputfield.cpp @@ -31,31 +31,31 @@ SimpleBaseInputField::SimpleBaseInputField( const TQString &name, const Schema:: if ( type->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = InputFieldFactory::self()->createBasicField( name, type->baseTypeName(), type ); if ( !field ) { - qDebug( "SimpleBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); + tqDebug( "SimpleBaseInputField: Unable to create field of type %s", type->baseTypeName().latin1() ); } else { appendChild( field ); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); } } void SimpleBaseInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "SimpleBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "SimpleBaseInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = childField( element.tagName() ); if ( !field ) { - qDebug( "SimpleBaseInputField: Child field %s does not exists", element.tagName().latin1() ); + tqDebug( "SimpleBaseInputField: Child field %s does not exists", element.tagName().latin1() ); } else { field->setXMLData( element ); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); } } @@ -64,12 +64,12 @@ void SimpleBaseInputField::xmlData( TQDomDocument &document, TQDomElement &paren if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = mFields.first(); if ( !field ) { - qDebug( "SimpleBaseInputField: No child found" ); + tqDebug( "SimpleBaseInputField: No child found" ); } else { field->xmlData( document, parent ); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); } } @@ -78,12 +78,12 @@ void SimpleBaseInputField::setData( const TQString &data ) if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = mFields.first(); if ( !field ) { - qDebug( "SimpleBaseInputField: No child found" ); + tqDebug( "SimpleBaseInputField: No child found" ); } else { field->setData( data ); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); } } @@ -92,12 +92,12 @@ TQString SimpleBaseInputField::data() const if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = mFields.first(); if ( !field ) { - qDebug( "SimpleBaseInputField: No child found" ); + tqDebug( "SimpleBaseInputField: No child found" ); } else { field->data(); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); } return TQString(); @@ -108,13 +108,13 @@ TQWidget *SimpleBaseInputField::createWidget( TQWidget *parent ) if ( mType->subType() == Schema::SimpleType::TypeRestriction ) { InputField *field = mFields.first(); if ( !field ) { - qDebug( "SimpleBaseInputField: No child found" ); + tqDebug( "SimpleBaseInputField: No child found" ); return 0; } else { return field->createWidget( parent ); } } else { - qDebug( "SimpleBaseInputField: Unsupported subtype" ); + tqDebug( "SimpleBaseInputField: Unsupported subtype" ); return 0; } } diff --git a/kode/kwsdl/kung/stringinputfield.cpp b/kode/kwsdl/kung/stringinputfield.cpp index 390c5bc1..9ea45029 100644 --- a/kode/kwsdl/kung/stringinputfield.cpp +++ b/kode/kwsdl/kung/stringinputfield.cpp @@ -35,7 +35,7 @@ StringInputField::StringInputField( const TQString &name, const TQString &typeNa void StringInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "StringInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "StringInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/timeinputfield.cpp b/kode/kwsdl/kung/timeinputfield.cpp index dce73bdd..38e1a264 100644 --- a/kode/kwsdl/kung/timeinputfield.cpp +++ b/kode/kwsdl/kung/timeinputfield.cpp @@ -32,7 +32,7 @@ TimeInputField::TimeInputField( const TQString &name, const Schema::SimpleType * void TimeInputField::setXMLData( const TQDomElement &element ) { if ( mName != element.tagName() ) { - qDebug( "TimeInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); + tqDebug( "TimeInputField: Wrong dom element passed: expected %s, got %s", mName.latin1(), element.tagName().latin1() ); return; } diff --git a/kode/kwsdl/kung/transport.cpp b/kode/kwsdl/kung/transport.cpp index fd7e545e..76f3acc8 100644 --- a/kode/kwsdl/kung/transport.cpp +++ b/kode/kwsdl/kung/transport.cpp @@ -25,7 +25,7 @@ Transport::Transport( const TQString &url ) { mUrl = url; - qDebug( "url=%s", url.latin1() ); + tqDebug( "url=%s", url.latin1() ); } void Transport::query( const TQString &xml ) diff --git a/kode/kwsdl/main.cpp b/kode/kwsdl/main.cpp index aff51ec4..192ce082 100644 --- a/kode/kwsdl/main.cpp +++ b/kode/kwsdl/main.cpp @@ -55,7 +55,7 @@ int main( int argc, char **argv ) KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); if ( args->count() < 1 || args->count() > 1 ) { - qDebug( "Invalid arguments, try --help." ); + tqDebug( "Invalid arguments, try --help." ); return 1; } diff --git a/kode/kwsdl/schema/complextype.cpp b/kode/kwsdl/schema/complextype.cpp index 51ed2ad0..21e9e90c 100644 --- a/kode/kwsdl/schema/complextype.cpp +++ b/kode/kwsdl/schema/complextype.cpp @@ -171,7 +171,7 @@ const Element *ComplexType::element( const TQString &name ) Element *ComplexType::element( int id ) { if ( id < 0 || id >= (int)mElements.count() ) { - qDebug( "tried to access non existent element" ); + tqDebug( "tried to access non existent element" ); return 0; } @@ -197,7 +197,7 @@ const Attribute *ComplexType::attribute( const TQString &name ) Attribute *ComplexType::attribute( int id ) { if ( id < 0 || id >= (int)mAttributes.count() ) { - qDebug( "tried to access non existent attributes" ); + tqDebug( "tried to access non existent attributes" ); return 0; } @@ -269,7 +269,7 @@ void ComplexType::setContentModel( int model ) mContentModel = model; if ( mContentModel == MIXED ) { mMixed = true; - qDebug( "Mixed content not supported" ); + tqDebug( "Mixed content not supported" ); } else mMixed = false; } @@ -279,7 +279,7 @@ void ComplexType::addAttribute( const TQString &name, int type_id, bool qualifie bool use ) { if ( type_id == 0 ) { - qDebug( "ComplexType:addAttribute(): No type given for attribute" ); + tqDebug( "ComplexType:addAttribute(): No type given for attribute" ); return; } @@ -306,12 +306,12 @@ void ComplexType::addElement( const TQString &name, int type_id, int minOccurs, const TQString &documentation ) { if ( type_id == 0 ) { - qDebug( "ComplexType:addElement() :No type given for element " ); + tqDebug( "ComplexType:addElement() :No type given for element " ); return; } if ( mTopLevelGroup == ALL && maxOccurs > 1 && mIsArray == false ) { - qDebug( "Inside an group elements can occur only once" ); + tqDebug( "Inside an group elements can occur only once" ); return; } @@ -366,17 +366,17 @@ void ComplexType::setCompositor( Compositor type, bool open, int minOccurs, int if ( mPreviousGroup == 0 ) mTopLevelGroup = type; else if ( mTopLevelGroup == this->ALL ) { - qDebug( "This cannot occur inside a top level compositor" ); + tqDebug( "This cannot occur inside a top level compositor" ); return; } if ( type == this->ALL && mPreviousGroup != 0 ) { - qDebug( " can occur only at the top level" ); + tqDebug( " can occur only at the top level" ); return; } if ( type == this->ALL && (minOccurs != 1 || maxOccurs != 1) ) { - qDebug( " can have min/max of only 1 " ); + tqDebug( " can have min/max of only 1 " ); return; } diff --git a/kode/kwsdl/schema/fileprovider.cpp b/kode/kwsdl/schema/fileprovider.cpp index 54fa0163..10c46381 100644 --- a/kode/kwsdl/schema/fileprovider.cpp +++ b/kode/kwsdl/schema/fileprovider.cpp @@ -50,7 +50,7 @@ bool FileProvider::get( const TQString &url, TQString &target ) mData.truncate( 0 ); - qDebug( "Downloading external schema '%s'", url.latin1() ); + tqDebug( "Downloading external schema '%s'", url.latin1() ); KIO::TransferJob* job = KIO::get( KURL( url ), false, false ); connect( job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ), @@ -83,17 +83,17 @@ void FileProvider::slotData( KIO::Job*, const TQByteArray &data ) void FileProvider::slotResult( KIO::Job *job ) { if ( job->error() ) { - qDebug( "%s", job->errorText().latin1() ); + tqDebug( "%s", job->errorText().latin1() ); return; } TQFile file( mFileName ); if ( !file.open( IO_WriteOnly ) ) { - qDebug( "Unable to create temporary file" ); + tqDebug( "Unable to create temporary file" ); return; } - qDebug( "Download successful" ); + tqDebug( "Download successful" ); file.writeBlock( mData ); file.close(); diff --git a/kode/kwsdl/schema/parser.cpp b/kode/kwsdl/schema/parser.cpp index 7ec3804f..b981c77e 100644 --- a/kode/kwsdl/schema/parser.cpp +++ b/kode/kwsdl/schema/parser.cpp @@ -603,7 +603,7 @@ XSDType *Parser::parseSimpleType( const TQDomElement &element ) parseRestriction( childElement, st ); } else if ( name.localName() == "union" ) { st->setSubType( SimpleType::TypeUnion ); - qDebug( "simpletype::union not supported" ); + tqDebug( "simpletype::union not supported" ); } else if ( name.localName() == "list" ) { st->setSubType( SimpleType::TypeList ); if ( childElement.hasAttribute( "itemType" ) ) { @@ -627,7 +627,7 @@ XSDType *Parser::parseSimpleType( const TQDomElement &element ) void Parser::parseRestriction( const TQDomElement &element, SimpleType *st ) { if ( st->baseType() == 0 ) - qDebug( ":unkown BaseType" ); + tqDebug( ":unkown BaseType" ); TQDomNode node = element.firstChild(); while ( !node.isNull() ) { @@ -635,7 +635,7 @@ void Parser::parseRestriction( const TQDomElement &element, SimpleType *st ) if ( !childElement.isNull() ) { if ( !st->isValidFacet( childElement.tagName() ) ) { - qDebug( ": %s is not a valid facet for the simple type", childElement.tagName().latin1() ); + tqDebug( ": %s is not a valid facet for the simple type", childElement.tagName().latin1() ); continue; } @@ -651,7 +651,7 @@ void Parser::parseComplexContent( const TQDomElement &element, ComplexType *ct ) QualifiedName typeName; if ( element.attribute( "mixed" ) == "true" ) { - qDebug( ": No support for mixed=true" ); + tqDebug( ": No support for mixed=true" ); return; } @@ -737,7 +737,7 @@ void Parser::parseSimpleContent( const TQDomElement &element, ComplexType *ct ) parseRestriction( childElement, st ); int typeId = mTypesTable.addType( st ); if ( typeId == 0 ) { - qDebug( "Could not add type in types table" ); + tqDebug( "Could not add type in types table" ); return; } @@ -852,7 +852,7 @@ void Parser::resolveForwardElementRefs() if ( e ) mTypesTable.resolveForwardElementRefs( (*it).localName(), *e ); else - qDebug( "Could not resolve element reference %s ", (*it).localName().latin1() ); + tqDebug( "Could not resolve element reference %s ", (*it).localName().latin1() ); } } @@ -868,7 +868,7 @@ void Parser::resolveForwardAttributeRefs() if ( a ) mTypesTable.resolveForwardAttributeRefs( (*it).localName(), *a ); else - qDebug( "Could not resolve attribute reference %s ", (*it).localName().latin1() ); + tqDebug( "Could not resolve attribute reference %s ", (*it).localName().latin1() ); } } @@ -970,7 +970,7 @@ int Parser::attributeId( const QualifiedName &type ) const typeName.setNameSpace( typens = mNameSpace ); if ( typens != mNameSpace && typens != SchemaUri ) { - qDebug( "Namespace does not match" ); + tqDebug( "Namespace does not match" ); return -1; } @@ -1067,7 +1067,7 @@ void Parser::importSchema( const TQString &location ) if ( provider.get( schemaLocation, fileName ) ) { TQFile file( fileName ); if ( !file.open( IO_ReadOnly ) ) { - qDebug( "Unable to open file %s", file.name().latin1() ); + tqDebug( "Unable to open file %s", file.name().latin1() ); return; } @@ -1076,7 +1076,7 @@ void Parser::importSchema( const TQString &location ) int errorLine, errorColumn; bool ok = doc.setContent( &file, true, &errorMsg, &errorLine, &errorColumn ); if ( !ok ) { - qDebug( "Error[%d:%d] %s", errorLine, errorColumn, errorMsg.latin1() ); + tqDebug( "Error[%d:%d] %s", errorLine, errorColumn, errorMsg.latin1() ); return; } @@ -1085,7 +1085,7 @@ void Parser::importSchema( const TQString &location ) TQDomElement schemaElement = nodes.item( 0 ).toElement(); parseSchemaTag( schemaElement ); } else { - qDebug( "No schema tag found in schema file" ); + tqDebug( "No schema tag found in schema file" ); } file.close(); diff --git a/kode/kwsdl/schema/simpletype.cpp b/kode/kwsdl/schema/simpletype.cpp index d5dcf2fd..ffbf27a1 100644 --- a/kode/kwsdl/schema/simpletype.cpp +++ b/kode/kwsdl/schema/simpletype.cpp @@ -153,7 +153,7 @@ bool SimpleType::isAnonymous() const bool SimpleType::isValidFacet( const TQString &facet ) { if ( mBaseType == 0 ) { - qDebug( "isValidFacet:Unknown base type" ); + tqDebug( "isValidFacet:Unknown base type" ); return false; } @@ -205,7 +205,7 @@ void SimpleType::setFacetValue( const TQString &value ) else if ( value == "replace" ) mFacetValue.wsp = REPLACE; else { - qDebug( "Invalid facet value for whitespace" ); + tqDebug( "Invalid facet value for whitespace" ); return; } } else { diff --git a/kode/kwsdl/tests/google/googlesearch.cc b/kode/kwsdl/tests/google/googlesearch.cc index d60c0417..690b9a11 100644 --- a/kode/kwsdl/tests/google/googlesearch.cc +++ b/kode/kwsdl/tests/google/googlesearch.cc @@ -60,33 +60,33 @@ void GoogleSearch::googleSearch( const TQString &query, int start, int maxResult void GoogleSearch::cachedPageResult( TQByteArray *array ) { - qDebug( "--------------- Cached Page Results ---------------------" ); - qDebug( "%s", array->data() ); - qDebug( "---------------------------------------------------------" ); + tqDebug( "--------------- Cached Page Results ---------------------" ); + tqDebug( "%s", array->data() ); + tqDebug( "---------------------------------------------------------" ); delete array; } void GoogleSearch::spellingSuggestionResult( TQString *word ) { - qDebug( "--------------- Spelling Suggestion ---------------------" ); - qDebug( "%s", word->latin1() ); - qDebug( "---------------------------------------------------------" ); + tqDebug( "--------------- Spelling Suggestion ---------------------" ); + tqDebug( "%s", word->latin1() ); + tqDebug( "---------------------------------------------------------" ); delete word; } void GoogleSearch::googleSearchResult( GoogleSearchResult *result ) { - qDebug( "--------------------- Search Results ---------------------" ); + tqDebug( "--------------------- Search Results ---------------------" ); ResultElementArray *array = result->resultElements(); TQPtrList *list = array->items(); TQPtrListIterator it( *list ); while ( it.current() != 0 ) { - qDebug( "%s: %s", it.current()->summary()->latin1(), it.current()->uRL()->latin1() ); + tqDebug( "%s: %s", it.current()->summary()->latin1(), it.current()->uRL()->latin1() ); ++it; } - qDebug( "---------------------------------------------------------" ); + tqDebug( "---------------------------------------------------------" ); delete result; } diff --git a/kode/kwsdl/tests/google/googlesearchservice.cpp b/kode/kwsdl/tests/google/googlesearchservice.cpp index e609249e..d2e7c97e 100644 --- a/kode/kwsdl/tests/google/googlesearchservice.cpp +++ b/kode/kwsdl/tests/google/googlesearchservice.cpp @@ -46,7 +46,7 @@ void GoogleSearchService::doGetCachedPage( TQString* key, TQString* url ) delete key; Serializer::marshal( doc, method, "url", url ); delete url; - qDebug( "%s", doc.toString().latin1() ); + tqDebug( "%s", doc.toString().latin1() ); mDoGetCachedPageTransport->query( doc.toString() ); } @@ -56,10 +56,10 @@ void GoogleSearchService::doGetCachedPageResponseSlot( const TQString &xml ) TQString errorMsg; int column, row; - qDebug( "%s", xml.latin1() ); + tqDebug( "%s", xml.latin1() ); if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) { - qDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); + tqDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); return; } @@ -92,7 +92,7 @@ void GoogleSearchService::doSpellingSuggestion( TQString* key, TQString* phrase delete key; Serializer::marshal( doc, method, "phrase", phrase ); delete phrase; - qDebug( "%s", doc.toString().latin1() ); + tqDebug( "%s", doc.toString().latin1() ); mDoSpellingSuggestionTransport->query( doc.toString() ); } @@ -102,10 +102,10 @@ void GoogleSearchService::doSpellingSuggestionResponseSlot( const TQString &xml TQString errorMsg; int column, row; - qDebug( "%s", xml.latin1() ); + tqDebug( "%s", xml.latin1() ); if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) { - qDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); + tqDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); return; } @@ -154,7 +154,7 @@ void GoogleSearchService::doGoogleSearch( TQString* key, TQString* q, int* start delete ie; Serializer::marshal( doc, method, "oe", oe ); delete oe; - qDebug( "%s", doc.toString().latin1() ); + tqDebug( "%s", doc.toString().latin1() ); mDoGoogleSearchTransport->query( doc.toString() ); } @@ -164,10 +164,10 @@ void GoogleSearchService::doGoogleSearchResponseSlot( const TQString &xml ) TQString errorMsg; int column, row; - qDebug( "%s", xml.latin1() ); + tqDebug( "%s", xml.latin1() ); if ( !doc.setContent( xml, true, &errorMsg, &row, &column ) ) { - qDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); + tqDebug( "Unable to parse xml: %s (%d:%d)", errorMsg.latin1(), row, column ); return; } diff --git a/kode/kwsdl/wscl/parser.cpp b/kode/kwsdl/wscl/parser.cpp index a21d05fe..2294d9d7 100644 --- a/kode/kwsdl/wscl/parser.cpp +++ b/kode/kwsdl/wscl/parser.cpp @@ -40,13 +40,13 @@ void Parser::parse( const TQString &xml ) int errorLine, errorColumn; bool ok = doc.setContent( xml, true, &errorMsg, &errorLine, &errorColumn ); if ( !ok ) { - qDebug( "Error parsing wscl (%d:%d) %s", errorLine, errorColumn, errorMsg.latin1() ); + tqDebug( "Error parsing wscl (%d:%d) %s", errorLine, errorColumn, errorMsg.latin1() ); return; } TQDomNodeList nodes = doc.elementsByTagName( "Conversation" ); if ( nodes.count() <= 0 ) { - qDebug( "No conversation tag found in wscl data" ); + tqDebug( "No conversation tag found in wscl data" ); return; } @@ -72,7 +72,7 @@ void Parser::parse( const TQString &xml ) TQDomElement interactionElement = interactionNode.toElement(); if ( !interactionElement.isNull() ) { if ( interactionElement.tagName() != "Interaction" ) { - qDebug( "Expected tag name 'Interaction', got '%s'", interactionElement.tagName().latin1() ); + tqDebug( "Expected tag name 'Interaction', got '%s'", interactionElement.tagName().latin1() ); continue; } @@ -90,7 +90,7 @@ void Parser::parse( const TQString &xml ) else if ( type == "Empty" ) interaction.setType( Interaction::Empty ); else - qDebug( "Unknown interaction type '%s'", type.latin1() ); + tqDebug( "Unknown interaction type '%s'", type.latin1() ); XMLDocument::List inputDocuments; XMLDocument::List outputDocuments; @@ -175,7 +175,7 @@ void Parser::parse( const TQString &xml ) TQDomElement transitionElement = transitionNode.toElement(); if ( !transitionElement.isNull() ) { if ( transitionElement.tagName() != "Transition" ) { - qDebug( "Expected tag name 'Transition', got '%s'", transitionElement.tagName().latin1() ); + tqDebug( "Expected tag name 'Transition', got '%s'", transitionElement.tagName().latin1() ); continue; } @@ -193,7 +193,7 @@ void Parser::parse( const TQString &xml ) else if ( tagName == "SourceInteractionCondition" ) transition.setSourceInteractionCondition( contentElement.attribute( "href" ) ); else - qDebug( "Unknown transition element %s", tagName.latin1() ); + tqDebug( "Unknown transition element %s", tagName.latin1() ); } contentNode = contentNode.nextSibling(); diff --git a/kresources/egroupware/debugdialog.cpp b/kresources/egroupware/debugdialog.cpp index 75a8ab81..54fe0723 100644 --- a/kresources/egroupware/debugdialog.cpp +++ b/kresources/egroupware/debugdialog.cpp @@ -88,7 +88,7 @@ void DebugDialog::save() TQFile file( fileName ); if ( !file.open( IO_WriteOnly ) ) { - qWarning( "Couldn't open file %s", file.name().latin1() ); + tqWarning( "Couldn't open file %s", file.name().latin1() ); return; } diff --git a/kresources/groupwise/soap/groupwiseserver.cpp b/kresources/groupwise/soap/groupwiseserver.cpp index ea2c492d..9a2f4427 100644 --- a/kresources/groupwise/soap/groupwiseserver.cpp +++ b/kresources/groupwise/soap/groupwiseserver.cpp @@ -194,12 +194,12 @@ int GroupwiseServer::gSoapSendCallback( struct soap * soap, const char *s, size_ } if ( getenv("DEBUG_GW_RESOURCE") ) { - qDebug("*************************"); + tqDebug("*************************"); char p[99999]; strncpy(p, s, n); p[n]='\0'; - qDebug("%s", p ); - qDebug("\n*************************"); + tqDebug("%s", p ); + tqDebug("\n*************************"); } log( "SENT", s, n ); @@ -249,13 +249,13 @@ size_t GroupwiseServer::gSoapReceiveCallback( struct soap *soap, char *s, << " " << m_sock->socketStatus() << " " << m_sock->fd() << endl; } else { if ( getenv("DEBUG_GW_RESOURCE") ) { - qDebug("*************************"); + tqDebug("*************************"); char p[99999]; strncpy(p, s, ret); p[ret]='\0'; - qDebug("%s", p ); - qDebug("\n*************************"); - qDebug("kioReceiveCallback return %ld", ret); + tqDebug("%s", p ); + tqDebug("\n*************************"); + tqDebug("kioReceiveCallback return %ld", ret); } log( "RECV", s, ret ); } diff --git a/kresources/kolab/kabc/contact.cpp b/kresources/kolab/kabc/contact.cpp index 79609902..a17c340b 100644 --- a/kresources/kolab/kabc/contact.cpp +++ b/kresources/kolab/kabc/contact.cpp @@ -821,7 +821,7 @@ bool Contact::loadXML( const TQDomDocument& document ) mIsDistributionList = top.tagName() == "distribution-list"; if ( top.tagName() != "contact" && !mIsDistributionList ) { - qWarning( "XML error: Top tag was %s instead of the expected contact or distribution-list", + tqWarning( "XML error: Top tag was %s instead of the expected contact or distribution-list", top.tagName().ascii() ); return false; } diff --git a/kresources/kolab/kcal/event.cpp b/kresources/kolab/kcal/event.cpp index 5f85cde2..c15c567d 100644 --- a/kresources/kolab/kcal/event.cpp +++ b/kresources/kolab/kcal/event.cpp @@ -157,7 +157,7 @@ bool Event::loadXML( const TQDomDocument& document ) TQDomElement top = document.documentElement(); if ( top.tagName() != "event" ) { - qWarning( "XML error: Top tag was %s instead of the expected event", + tqWarning( "XML error: Top tag was %s instead of the expected event", top.tagName().ascii() ); return false; } diff --git a/kresources/kolab/kcal/journal.cpp b/kresources/kolab/kcal/journal.cpp index 4957927a..acfc4e71 100644 --- a/kresources/kolab/kcal/journal.cpp +++ b/kresources/kolab/kcal/journal.cpp @@ -129,7 +129,7 @@ bool Journal::loadXML( const TQDomDocument& document ) TQDomElement top = document.documentElement(); if ( top.tagName() != "journal" ) { - qWarning( "XML error: Top tag was %s instead of the expected Journal", + tqWarning( "XML error: Top tag was %s instead of the expected Journal", top.tagName().ascii() ); return false; } @@ -141,10 +141,10 @@ bool Journal::loadXML( const TQDomDocument& document ) TQDomElement e = n.toElement(); if ( !loadAttribute( e ) ) { // Unhandled tag - save for later storage - //qDebug( "Unhandled tag: %s", e.toCString().data() ); + //tqDebug( "Unhandled tag: %s", e.toCString().data() ); } } else - qDebug( "Node is not a comment or an element???" ); + tqDebug( "Node is not a comment or an element???" ); } return true; diff --git a/kresources/kolab/kcal/task.cpp b/kresources/kolab/kcal/task.cpp index ccbb03e5..fe75845d 100644 --- a/kresources/kolab/kcal/task.cpp +++ b/kresources/kolab/kcal/task.cpp @@ -327,7 +327,7 @@ bool Task::loadXML( const TQDomDocument& document ) TQDomElement top = document.documentElement(); if ( top.tagName() != "task" ) { - qWarning( "XML error: Top tag was %s instead of the expected task", + tqWarning( "XML error: Top tag was %s instead of the expected task", top.tagName().ascii() ); return false; } diff --git a/kresources/kolab/knotes/note.cpp b/kresources/kolab/knotes/note.cpp index e456e43b..7df5b26b 100644 --- a/kresources/kolab/knotes/note.cpp +++ b/kresources/kolab/knotes/note.cpp @@ -150,7 +150,7 @@ bool Note::loadXML( const TQDomDocument& document ) TQDomElement top = document.documentElement(); if ( top.tagName() != "note" ) { - qWarning( "XML error: Top tag was %s instead of the expected note", + tqWarning( "XML error: Top tag was %s instead of the expected note", top.tagName().ascii() ); return false; } diff --git a/kresources/kolab/shared/kolabbase.cpp b/kresources/kolab/shared/kolabbase.cpp index a0f32529..167f2566 100644 --- a/kresources/kolab/shared/kolabbase.cpp +++ b/kresources/kolab/shared/kolabbase.cpp @@ -370,7 +370,7 @@ bool KolabBase::load( const TQString& xml ) bool ok = document.setContent( xml, &errorMsg, &errorLine, &errorColumn ); if ( !ok ) { - qWarning( "Error loading document: %s, line %d, column %d", + tqWarning( "Error loading document: %s, line %d, column %d", errorMsg.latin1(), errorLine, errorColumn ); return false; } @@ -387,7 +387,7 @@ bool KolabBase::load( TQFile& xml ) bool ok = document.setContent( &xml, &errorMsg, &errorLine, &errorColumn ); if ( !ok ) { - qWarning( "Error loading document: %s, line %d, column %d", + tqWarning( "Error loading document: %s, line %d, column %d", errorMsg.latin1(), errorLine, errorColumn ); return false; } diff --git a/kresources/scalix/kabc/contact.cpp b/kresources/scalix/kabc/contact.cpp index 9f38674e..457a34e7 100644 --- a/kresources/scalix/kabc/contact.cpp +++ b/kresources/scalix/kabc/contact.cpp @@ -183,7 +183,7 @@ KABC::Addressee Contact::fromXml( const TQString &xml ) TQString errorMsg; int errorLine, errorColumn; if ( !document.setContent( xml, true, &errorMsg, &errorLine, &errorColumn ) ) { - qDebug( "Error parsing XML in Scalix::Contact::fromXml: %s (%d,%d)", errorMsg.latin1(), errorLine, errorColumn ); + tqDebug( "Error parsing XML in Scalix::Contact::fromXml: %s (%d,%d)", errorMsg.latin1(), errorLine, errorColumn ); return KABC::Addressee(); } @@ -207,7 +207,7 @@ KABC::Addressee Contact::fromXml( const TQString &xml ) return list; } else { - qDebug( "Error interpreting XML in Scalix::Contact::fromXml: no 'contact' or 'distlist' tag found" ); + tqDebug( "Error interpreting XML in Scalix::Contact::fromXml: no 'contact' or 'distlist' tag found" ); return KABC::Addressee(); } } diff --git a/kresources/scalix/scalixadmin/passwordpage.cpp b/kresources/scalix/scalixadmin/passwordpage.cpp index de1a9aac..23f4304c 100644 --- a/kresources/scalix/scalixadmin/passwordpage.cpp +++ b/kresources/scalix/scalixadmin/passwordpage.cpp @@ -151,7 +151,7 @@ void PasswordPage::finished( KIO::Job* job ) } if ( scalixAccount.isEmpty() ) { - qWarning( "No Scalix Groupware Account found in kmailrc!" ); + tqWarning( "No Scalix Groupware Account found in kmailrc!" ); return; } diff --git a/kresources/scalix/shared/scalixbase.cpp b/kresources/scalix/shared/scalixbase.cpp index 0d305c0a..d40bdb03 100644 --- a/kresources/scalix/shared/scalixbase.cpp +++ b/kresources/scalix/shared/scalixbase.cpp @@ -333,7 +333,7 @@ bool ScalixBase::load( const TQString& xml ) bool ok = document.setContent( xml, &errorMsg, &errorLine, &errorColumn ); if ( !ok ) { - qWarning( "Error loading document: %s, line %d, column %d", + tqWarning( "Error loading document: %s, line %d, column %d", errorMsg.latin1(), errorLine, errorColumn ); return false; } @@ -350,7 +350,7 @@ bool ScalixBase::load( TQFile& xml ) bool ok = document.setContent( &xml, &errorMsg, &errorLine, &errorColumn ); if ( !ok ) { - qWarning( "Error loading document: %s, line %d, column %d", + tqWarning( "Error loading document: %s, line %d, column %d", errorMsg.latin1(), errorLine, errorColumn ); return false; } diff --git a/kresources/tvanytime/service.cpp b/kresources/tvanytime/service.cpp index e4c3ff21..f713f7b1 100644 --- a/kresources/tvanytime/service.cpp +++ b/kresources/tvanytime/service.cpp @@ -58,7 +58,7 @@ TQString Service::name() const bool Service::loadXML( const TQDomElement & top ) { if ( top.tagName() != "ServiceInformation" ) { - qWarning( "XML error: Top tag was %s instead of the expected service information", + tqWarning( "XML error: Top tag was %s instead of the expected service information", top.tagName().ascii() ); return false; } @@ -72,7 +72,7 @@ bool Service::loadXML( const TQDomElement & top ) TQDomElement e = n.toElement(); loadAttribute( e ); } else - qWarning( "Node is not a comment or an element???" ); + tqWarning( "Node is not a comment or an element???" ); } return true; } @@ -105,7 +105,7 @@ TQRegExp ScheduleEvent::sRegExp( "PT(\\d{2})H(\\d{2})M(\\d{2})S" ); bool ScheduleEvent::loadXML( const TQDomElement & top ) { if ( top.tagName() != "ScheduleEvent" ) { - qWarning( "XML error: Top tag was %s instead of the expected event", + tqWarning( "XML error: Top tag was %s instead of the expected event", top.tagName().ascii() ); return false; } @@ -119,7 +119,7 @@ bool ScheduleEvent::loadXML( const TQDomElement & top ) TQDomElement e = n.toElement(); loadAttribute( e ); } else - qWarning( "Node is not a comment or an element???" ); + tqWarning( "Node is not a comment or an element???" ); } return true; } @@ -169,7 +169,7 @@ ProgramInformation::ProgramInformation( const TQString & title, const TQString & bool ProgramInformation::loadXML( const TQDomElement & top ) { if ( top.tagName() != "ProgramInformation" ) { - qWarning( "XML error: Top tag was %s instead of the expected program information", + tqWarning( "XML error: Top tag was %s instead of the expected program information", top.tagName().ascii() ); return false; } @@ -193,7 +193,7 @@ bool ProgramInformation::loadXML( const TQDomElement & top ) } } } else - qWarning( "Node is not a comment or an element???" ); + tqWarning( "Node is not a comment or an element???" ); } return true; } diff --git a/ktnef/gui/ktnefmain.cpp b/ktnef/gui/ktnefmain.cpp index ccb1bb54..884c3ac9 100644 --- a/ktnef/gui/ktnefmain.cpp +++ b/ktnef/gui/ktnefmain.cpp @@ -379,7 +379,7 @@ void KTNEFMain::slotShowMessageProperties() void KTNEFMain::slotShowMessageText() { TQString rtf = parser_->message()->rtfString(); - qDebug( "%s", rtf.latin1() ); + tqDebug( "%s", rtf.latin1() ); KTempFile tmpFile( KGlobal::dirs()->localtdedir() + "/share/apps/ktnef/tmp/", "rtf"); *( tmpFile.textStream() ) << rtf; tmpFile.close(); diff --git a/libemailfunctions/tests/testidmapper.cpp b/libemailfunctions/tests/testidmapper.cpp index 3abde7b5..74ee9201 100644 --- a/libemailfunctions/tests/testidmapper.cpp +++ b/libemailfunctions/tests/testidmapper.cpp @@ -33,22 +33,22 @@ int main( int argc, char **argv ) mapper.setRemoteId( "yes", "klar" ); mapper.setRemoteId( "no", "nee" ); - qDebug( "full:\n%s", mapper.asString().latin1() ); + tqDebug( "full:\n%s", mapper.asString().latin1() ); mapper.save(); mapper.clear(); - qDebug( "empty:\n%s", mapper.asString().latin1() ); + tqDebug( "empty:\n%s", mapper.asString().latin1() ); mapper.load(); - qDebug( "full again:\n%s", mapper.asString().latin1() ); + tqDebug( "full again:\n%s", mapper.asString().latin1() ); mapper.save(); mapper.clear(); - qDebug( "empty:\n%s", mapper.asString().latin1() ); + tqDebug( "empty:\n%s", mapper.asString().latin1() ); mapper.load(); - qDebug( "full again:\n%s", mapper.asString().latin1() ); + tqDebug( "full again:\n%s", mapper.asString().latin1() ); return 0; } diff --git a/libkcal/attachment.cpp b/libkcal/attachment.cpp index 0b1db1a3..5ae4031a 100644 --- a/libkcal/attachment.cpp +++ b/libkcal/attachment.cpp @@ -29,7 +29,7 @@ Attachment::Attachment( const Attachment &attachment ) mSize = attachment.mSize; mMimeType = attachment.mMimeType; mUri = attachment.mUri; - mData = qstrdup( attachment.mData ); + mData = tqstrdup( attachment.mData ); mLabel = attachment.mLabel; mBinary = attachment.mBinary; mLocal = attachment.mLocal; @@ -51,7 +51,7 @@ Attachment::Attachment( const char *base64, const TQString &mime ) { mSize = 0; mMimeType = mime; - mData = qstrdup( base64 ); + mData = tqstrdup( base64 ); mBinary = true; mLocal = false; mShowInline = false; @@ -127,7 +127,7 @@ void Attachment::setDecodedData( const TQByteArray &data ) void Attachment::setData( const char *base64 ) { delete[] mData; - mData = qstrdup( base64 ); + mData = tqstrdup( base64 ); mBinary = true; mDataCache = TQByteArray(); mSize = 0; diff --git a/libkmime/kmime_charfreq.cpp b/libkmime/kmime_charfreq.cpp index 93413b80..13e77ddc 100644 --- a/libkmime/kmime_charfreq.cpp +++ b/libkmime/kmime_charfreq.cpp @@ -133,7 +133,7 @@ bool CharFreq::hasLeadingFrom() const { CharFreq::Type CharFreq::type() const { #if 0 - qDebug( "Total: %d; NUL: %d; CTL: %d;\n" + tqDebug( "Total: %d; NUL: %d; CTL: %d;\n" "CR: %d; LF: %d; CRLF: %d;\n" "lineMin: %d; lineMax: %d;\n" "printable: %d; eightBit: %d;\n" diff --git a/libkmime/kmime_content.cpp b/libkmime/kmime_content.cpp index 6eca383f..5dead52a 100644 --- a/libkmime/kmime_content.cpp +++ b/libkmime/kmime_content.cpp @@ -53,7 +53,7 @@ Content::~Content() void Content::setContent(TQStrList *l) { - //qDebug("Content::setContent(TQStrList *l) : start"); + //tqDebug("Content::setContent(TQStrList *l) : start"); h_ead.resize(0); b_ody.resize(0); @@ -79,7 +79,7 @@ void Content::setContent(TQStrList *l) hts << '\0'; bts << '\0'; - //qDebug("Content::setContent(TQStrList *l) : finished"); + //tqDebug("Content::setContent(TQStrList *l) : finished"); } @@ -98,7 +98,7 @@ void Content::setContent(const TQCString &s) //parse the message, split multiple parts void Content::parse() { - //qDebug("void Content::parse() : start"); + //tqDebug("void Content::parse() : start"); delete h_eaders; h_eaders=0; @@ -151,7 +151,7 @@ void Content::parse() c->parse(); c->contentType()->setCategory(cat); //set category of the sub-part c_ontents->append(c); - //qDebug("part:\n%s\n\n%s", c->h_ead.data(), c->b_ody.left(100).data()); + //tqDebug("part:\n%s\n\n%s", c->h_ead.data(), c->b_ody.left(100).data()); } //the whole content is now split into single parts, so it's safe delete the message-body @@ -249,7 +249,7 @@ void Content::parse() } } - //qDebug("void Content::parse() : finished"); + //tqDebug("void Content::parse() : finished"); } diff --git a/libkmime/kmime_header_parsing.cpp b/libkmime/kmime_header_parsing.cpp index 14d4ed11..32099f29 100644 --- a/libkmime/kmime_header_parsing.cpp +++ b/libkmime/kmime_header_parsing.cpp @@ -1402,7 +1402,7 @@ static bool parseDayName( const char* & scursor, const char * const send ) if ( send - scursor < 3 ) return false; for ( int i = 0 ; i < stdDayNamesLen ; ++i ) - if ( qstrnicmp( scursor, stdDayNames[i], 3 ) == 0 ) { + if ( tqstrnicmp( scursor, stdDayNames[i], 3 ) == 0 ) { scursor += 3; kdDebug() << "found " << stdDayNames[i] << endl; return true; @@ -1426,7 +1426,7 @@ static bool parseMonthName( const char* & scursor, const char * const send, if ( send - scursor < 3 ) return false; for ( result = 0 ; result < stdMonthNamesLen ; ++result ) - if ( qstrnicmp( scursor, stdMonthNames[result], 3 ) == 0 ) { + if ( tqstrnicmp( scursor, stdMonthNames[result], 3 ) == 0 ) { scursor += 3; return true; } @@ -1495,7 +1495,7 @@ static bool parseAlphaNumericTimeZone( const char* & scursor, if ( !parseToken( scursor, send, maybeTimeZone, false /*no 8bit*/ ) ) return false; for ( int i = 0 ; i < timeZonesLen ; ++i ) - if ( qstrnicmp( timeZones[i].tzName, + if ( tqstrnicmp( timeZones[i].tzName, maybeTimeZone.first, maybeTimeZone.second ) == 0 ) { scursor += maybeTimeZone.second; secsEastOfGMT = timeZones[i].secsEastOfGMT; diff --git a/libkmime/tests/test_kmime_codec.cpp b/libkmime/tests/test_kmime_codec.cpp index 832ea2c3..7417c8ae 100644 --- a/libkmime/tests/test_kmime_codec.cpp +++ b/libkmime/tests/test_kmime_codec.cpp @@ -138,11 +138,11 @@ int main( int argc, char * argv[] ) { verbose = true; break; case 9: // usage-pattern - if ( !qstricmp( "kio", optarg ) ) + if ( !tqstricmp( "kio", optarg ) ) pattern = Kio; - else if ( !qstricmp( "chunkwise", optarg ) ) + else if ( !tqstricmp( "chunkwise", optarg ) ) pattern = ChunkWise; - else if ( !qstricmp( "convenience-qba", optarg ) ) + else if ( !tqstricmp( "convenience-qba", optarg ) ) pattern = ConvenienceTQBA; else { cerr << "Unknown usage pattern \"" << optarg << "\"" << endl; diff --git a/libkmime/tests/test_kmime_header_parsing.cpp b/libkmime/tests/test_kmime_header_parsing.cpp index 7c93ec10..091b48a6 100644 --- a/libkmime/tests/test_kmime_header_parsing.cpp +++ b/libkmime/tests/test_kmime_header_parsing.cpp @@ -116,7 +116,7 @@ int main( int argc, char * argv[] ) { int index; for ( index = 0 ; index < tokenTypesLen ; ++index ) - if ( !qstricmp( tokenTypes[index], argument ) ) break; + if ( !tqstricmp( tokenTypes[index], argument ) ) break; if ( index >= tokenTypesLen ) usage( "unknown token type" ); diff --git a/libkmime/tests/test_mdn.cpp b/libkmime/tests/test_mdn.cpp index fa9290f2..e4a132d8 100644 --- a/libkmime/tests/test_mdn.cpp +++ b/libkmime/tests/test_mdn.cpp @@ -52,7 +52,7 @@ int main( int argc, char * argv[] ) { long_options, &option_index ); if ( c == -1 ) break; -#define EQUALS(x) !qstricmp( optarg, x ) +#define EQUALS(x) !tqstricmp( optarg, x ) switch ( c ) { diff --git a/libksieve/impl/lexer.h b/libksieve/impl/lexer.h index 1620f29d..f25abdd5 100644 --- a/libksieve/impl/lexer.h +++ b/libksieve/impl/lexer.h @@ -134,7 +134,7 @@ namespace KSieve { const char * beginOfLine() const { return mState.beginOfLine; } int _strnicmp( const char * left, const char * right, size_t len ) const { - return charsLeft() >= len ? qstrnicmp( left, right, len ) : 1 ; + return charsLeft() >= len ? tqstrnicmp( left, right, len ) : 1 ; } void clearErrors() { mState.error = Error(); } diff --git a/libtdenetwork/qgpgme/dataprovider.cpp b/libtdenetwork/qgpgme/dataprovider.cpp index a37684d0..308fbc12 100644 --- a/libtdenetwork/qgpgme/dataprovider.cpp +++ b/libtdenetwork/qgpgme/dataprovider.cpp @@ -46,7 +46,7 @@ QGpgME::TQByteArrayDataProvider::~TQByteArrayDataProvider() {} ssize_t QGpgME::TQByteArrayDataProvider::read( void * buffer, size_t bufSize ) { #ifndef NDEBUG - //qDebug( "QGpgME::TQByteArrayDataProvider::read( %p, %d )", buffer, bufSize ); + //tqDebug( "QGpgME::TQByteArrayDataProvider::read( %p, %d )", buffer, bufSize ); #endif if ( bufSize == 0 ) return 0; @@ -61,7 +61,7 @@ ssize_t QGpgME::TQByteArrayDataProvider::read( void * buffer, size_t bufSize ) { ssize_t QGpgME::TQByteArrayDataProvider::write( const void * buffer, size_t bufSize ) { #ifndef NDEBUG - qDebug( "QGpgME::TQByteArrayDataProvider::write( %p, %d )", buffer, bufSize ); + tqDebug( "QGpgME::TQByteArrayDataProvider::write( %p, %d )", buffer, bufSize ); #endif if ( bufSize == 0 ) return 0; @@ -79,7 +79,7 @@ ssize_t QGpgME::TQByteArrayDataProvider::write( const void * buffer, size_t bufS off_t QGpgME::TQByteArrayDataProvider::seek( off_t offset, int whence ) { #ifndef NDEBUG - qDebug( "QGpgME::TQByteArrayDataProvider::seek( %d, %d )", int(offset), whence ); + tqDebug( "QGpgME::TQByteArrayDataProvider::seek( %d, %d )", int(offset), whence ); #endif int newOffset = mOff; switch ( whence ) { @@ -101,7 +101,7 @@ off_t QGpgME::TQByteArrayDataProvider::seek( off_t offset, int whence ) { void QGpgME::TQByteArrayDataProvider::release() { #ifndef NDEBUG - qDebug( "QGpgME::TQByteArrayDataProvider::release()" ); + tqDebug( "QGpgME::TQByteArrayDataProvider::release()" ); #endif mArray = TQByteArray(); } diff --git a/libtdenetwork/qgpgme/eventloopinteractor.cpp b/libtdenetwork/qgpgme/eventloopinteractor.cpp index fdf25af0..3b07189d 100644 --- a/libtdenetwork/qgpgme/eventloopinteractor.cpp +++ b/libtdenetwork/qgpgme/eventloopinteractor.cpp @@ -54,7 +54,7 @@ QGpgME::EventLoopInteractor * QGpgME::EventLoopInteractor::instance() { if ( !mSelf ) #ifndef NDEBUG if ( !tqApp ) - qWarning( "QGpgME::EventLoopInteractor: Need a TQApplication object before calling instance()!" ); + tqWarning( "QGpgME::EventLoopInteractor: Need a TQApplication object before calling instance()!" ); else #endif (void)new EventLoopInteractor( 0, "QGpgME::EventLoopInteractor::instance()" ); diff --git a/libtdepim/ldapclient.cpp b/libtdepim/ldapclient.cpp index 038824ca..1bebe335 100644 --- a/libtdepim/ldapclient.cpp +++ b/libtdepim/ldapclient.cpp @@ -162,7 +162,7 @@ void LdapClient::slotData( KIO::Job*, const TQByteArray& data ) void LdapClient::slotInfoMessage( KIO::Job*, const TQString & ) { - //qDebug("Job said \"%s\"", info.latin1()); + //tqDebug("Job said \"%s\"", info.latin1()); } void LdapClient::slotDone() @@ -171,7 +171,7 @@ void LdapClient::slotDone() mActive = false; #if 0 for ( TQValueList::Iterator it = mObjects.begin(); it != mObjects.end(); ++it ) { - qDebug( (*it).toString().latin1() ); + tqDebug( (*it).toString().latin1() ); } #endif int err = mJob->error(); diff --git a/libtdepim/qutf7codec.cpp b/libtdepim/qutf7codec.cpp index d390e649..78d709df 100644 --- a/libtdepim/qutf7codec.cpp +++ b/libtdepim/qutf7codec.cpp @@ -180,7 +180,7 @@ public: // check for 8bit char's: // if ( ch > 127 ) { - qWarning("TQUtf7Decoder: 8bit char found in input. " + tqWarning("TQUtf7Decoder: 8bit char found in input. " "Parser has been re-initialized!"); resetParser(); result += TQChar::replacement; @@ -228,12 +228,12 @@ public: // makes for an ill-formed sequence. // Note that we catch (the valid) "+-" pair // right at the beginning. - qWarning("TQUtf7Decoder: ill-formed input: " + tqWarning("TQUtf7Decoder: ill-formed input: " "non-base64 char after escaping \"+\"!"); } // pending bits from base64 encoding must be all 0: if (stepNo >= 1 && uc) { - qWarning("TQUtf7Decoder: ill-formed sequence: " + tqWarning("TQUtf7Decoder: ill-formed sequence: " "non-zero bits in shifted-sequence tail!"); } resetParser(); diff --git a/libtdepim/tests/testdateedit.cpp b/libtdepim/tests/testdateedit.cpp index 4a7f981e..4da2bb82 100644 --- a/libtdepim/tests/testdateedit.cpp +++ b/libtdepim/tests/testdateedit.cpp @@ -46,9 +46,9 @@ DateEdit::DateEdit( TQWidget *parent, const char *name ) void DateEdit::dateChanged( const TQDate &date ) { if ( date.isValid() ) - qDebug( "%s", date.toString().latin1() ); + tqDebug( "%s", date.toString().latin1() ); else - qDebug( "invalid date entered" ); + tqDebug( "invalid date entered" ); } int main(int argc,char **argv) diff --git a/libtdepim/tests/testutf7decoder.cpp b/libtdepim/tests/testutf7decoder.cpp index b13fb30c..7cdd4aea 100644 --- a/libtdepim/tests/testutf7decoder.cpp +++ b/libtdepim/tests/testutf7decoder.cpp @@ -20,7 +20,7 @@ int main( int argc, char * argv[] ) { my_cout << buffer; } else { - qWarning("usage: testutf7decoder string_to_decode\n"); + tqWarning("usage: testutf7decoder string_to_decode\n"); } TQTextCodec::deleteAllCodecs(); } diff --git a/libtdepim/tests/testutf7encoder.cpp b/libtdepim/tests/testutf7encoder.cpp index a28a6bf3..46fbd4d8 100644 --- a/libtdepim/tests/testutf7encoder.cpp +++ b/libtdepim/tests/testutf7encoder.cpp @@ -88,6 +88,6 @@ void main( int argc, char * argv[] ) { delete codec; } else { - qWarning("usage: testutf7encoder string_to_encode\n"); + tqWarning("usage: testutf7encoder string_to_encode\n"); } } diff --git a/libtdepim/tests/testutf7encoder2.cpp b/libtdepim/tests/testutf7encoder2.cpp index 65cf8b46..911b6907 100644 --- a/libtdepim/tests/testutf7encoder2.cpp +++ b/libtdepim/tests/testutf7encoder2.cpp @@ -19,7 +19,7 @@ int main( int argc, char * argv[] ) { TQString buffer = my_cin.read(); - // qDebug("buffer == " + buffer); + // tqDebug("buffer == " + buffer); #ifdef USE_STREAM my_cout << buffer << endl; @@ -39,7 +39,7 @@ int main( int argc, char * argv[] ) { delete enc; #endif // else USE_STREAM } else { - qWarning("usage: testutf7encoder2 < infile > outfile\n"); + tqWarning("usage: testutf7encoder2 < infile > outfile\n"); } TQTextCodec::deleteAllCodecs(); } diff --git a/plugins/kmail/bodypartformatter/text_xdiff.cpp b/plugins/kmail/bodypartformatter/text_xdiff.cpp index c11fed5c..9da709b5 100644 --- a/plugins/kmail/bodypartformatter/text_xdiff.cpp +++ b/plugins/kmail/bodypartformatter/text_xdiff.cpp @@ -121,7 +121,7 @@ namespace { } html += ""; - //qDebug( "%s", html.latin1() ); + //tqDebug( "%s", html.latin1() ); writer->queue( html ); return Ok; -- cgit v1.2.3