diff options
Diffstat (limited to 'kbabel/filters/linguist/linguistimport.cpp')
-rw-r--r-- | kbabel/filters/linguist/linguistimport.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kbabel/filters/linguist/linguistimport.cpp b/kbabel/filters/linguist/linguistimport.cpp index 220c0634..a1870bd7 100644 --- a/kbabel/filters/linguist/linguistimport.cpp +++ b/kbabel/filters/linguist/linguistimport.cpp @@ -38,12 +38,12 @@ **************************************************************************** */ // Qt include files -#include <qfile.h> -#include <qfileinfo.h> -#include <qobject.h> -#include <qregexp.h> -#include <qstring.h> -#include <qstringlist.h> +#include <tqfile.h> +#include <tqfileinfo.h> +#include <tqobject.h> +#include <tqregexp.h> +#include <tqstring.h> +#include <tqstringlist.h> // KDE include files #include <kdebug.h> #include <kgenericfactory.h> @@ -55,19 +55,19 @@ K_EXPORT_COMPONENT_FACTORY( kbabel_linguistimport, KGenericFactory<LinguistImpor using namespace KBabel; -LinguistImportPlugin::LinguistImportPlugin( QObject * parent, const char * name, const QStringList& ) +LinguistImportPlugin::LinguistImportPlugin( TQObject * parent, const char * name, const TQStringList& ) : CatalogImportPlugin( parent, name ) { } -ConversionStatus LinguistImportPlugin::load( const QString& filename, const QString& ) +ConversionStatus LinguistImportPlugin::load( const TQString& filename, const TQString& ) { if ( filename.isEmpty( ) ) { kdDebug( ) << "fatal error: empty filename to open" << endl; return NO_FILE; } - QFileInfo info( filename ); + TQFileInfo info( filename ); if ( !info.exists( ) || info.isDir( ) ) return NO_FILE; @@ -75,14 +75,14 @@ ConversionStatus LinguistImportPlugin::load( const QString& filename, const QStr if ( !info.isReadable( ) ) return NO_PERMISSIONS; - QFile file( filename ); + TQFile file( filename ); if ( !file.open( IO_ReadOnly ) ) return NO_PERMISSIONS; - QString errorMsg; + TQString errorMsg; int errorLine, errorColumn; - QDomDocument doc; + TQDomDocument doc; if ( !doc.setContent( &file, &errorMsg, &errorLine, &errorColumn ) ) { file.close( ); kdError() << "Parsing error at line " << errorLine << ", column " << errorColumn << ", error " << errorMsg << endl; @@ -90,7 +90,7 @@ ConversionStatus LinguistImportPlugin::load( const QString& filename, const QStr } file.close( ); - const QDomElement documentElement( doc.documentElement() ); + const TQDomElement documentElement( doc.documentElement() ); // Count the number of messages in this file. This is needed for updating // the progress bar correctly. msgcnt = documentElement.elementsByTagName( "message" ).count(); @@ -113,13 +113,13 @@ ConversionStatus LinguistImportPlugin::load( const QString& filename, const QStr return OK; } -void LinguistImportPlugin::parse( const QDomElement& parentElement ) +void LinguistImportPlugin::parse( const TQDomElement& parentElement ) { - QDomNode node = parentElement.firstChild( ); + TQDomNode node = parentElement.firstChild( ); while ( !node.isNull( ) ) { if ( node.isElement( ) ) { - QDomElement elem = node.toElement( ); + TQDomElement elem = node.toElement( ); if ( elem.tagName( ) == "context" ) { // nothing to do here @@ -127,14 +127,14 @@ void LinguistImportPlugin::parse( const QDomElement& parentElement ) context = elem.text( ); } else if ( elem.tagName( ) == "message" ) { CatalogItem item; - QString comment; + TQString comment; bool isObsolete = false; bool isFuzzy = false; - QDomNode childNode = node.firstChild(); + TQDomNode childNode = node.firstChild(); for ( ; ! childNode.isNull() ; childNode = childNode.nextSibling() ) { - const QDomElement elem = childNode.toElement(); + const TQDomElement elem = childNode.toElement(); if ( elem.isNull() ) continue; @@ -155,7 +155,7 @@ void LinguistImportPlugin::parse( const QDomElement& parentElement ) } } - QString fullComment = "Context: " + context; + TQString fullComment = "Context: " + context; if ( isFuzzy ) { /* |