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 --- kode/kwsdl/schema/complextype.cpp | 18 +++++++++--------- kode/kwsdl/schema/fileprovider.cpp | 8 ++++---- kode/kwsdl/schema/parser.cpp | 22 +++++++++++----------- kode/kwsdl/schema/simpletype.cpp | 4 ++-- 4 files changed, 26 insertions(+), 26 deletions(-) (limited to 'kode/kwsdl/schema') 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 { -- cgit v1.2.3