diff options
Diffstat (limited to 'kbabel/datatools/accelerators/main.cc')
-rw-r--r-- | kbabel/datatools/accelerators/main.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kbabel/datatools/accelerators/main.cc b/kbabel/datatools/accelerators/main.cc index 2bf6ec90..632eb7b5 100644 --- a/kbabel/datatools/accelerators/main.cc +++ b/kbabel/datatools/accelerators/main.cc @@ -51,14 +51,14 @@ K_EXPORT_COMPONENT_FACTORY( kbabel_accelstool, KGenericFactory<AcceleratorTool> using namespace KBabel; -AcceleratorTool::AcceleratorTool( QObject* parent, const char* name, const QStringList & ) +AcceleratorTool::AcceleratorTool( TQObject* parent, const char* name, const TQStringList & ) : KDataTool( parent, name ), _cache_origin( 0 ) { // bogus translation just for allowing the translation i18n("what check found errors","accelerator"); } -bool AcceleratorTool::run( const QString& command, void* data, const QString& datatype, const QString& mimetype ) +bool AcceleratorTool::run( const TQString& command, void* data, const TQString& datatype, const TQString& mimetype ) { if ( command != "validate" ) { @@ -96,26 +96,26 @@ bool AcceleratorTool::run( const QString& command, void* data, const QString& da if(!item->isUntranslated()) { // FIXME: this should care about plural forms in msgid - QString lineid=item->msgid().first(); + TQString lineid=item->msgid().first(); lineid.replace( _context, ""); - lineid.replace(QRegExp("\\n"),""); + lineid.replace(TQRegExp("\\n"),""); lineid.simplifyWhiteSpace(); - QString regStr(_marker); + TQString regStr(_marker); regStr+="[^\\s]"; - QRegExp reg(regStr); + TQRegExp reg(regStr); - QStringList str = item->msgstr(true); - for( QStringList::Iterator form = str.begin() ; form != str.end(); form++ ) + TQStringList str = item->msgstr(true); + for( TQStringList::Iterator form = str.begin() ; form != str.end(); form++ ) { - QString linestr=(*form); + TQString linestr=(*form); linestr.simplifyWhiteSpace(); int n = lineid.contains(reg); if( _marker == '&' ) - n = n - lineid.contains(QRegExp("(&[a-z,A-Z,\\-,0-9,#]*;)|(&&(?!&+))")); + n = n - lineid.contains(TQRegExp("(&[a-z,A-Z,\\-,0-9,#]*;)|(&&(?!&+))")); int m = linestr.contains(reg); if( _marker == '&' ) - m = m - linestr.contains(QRegExp("(&[a-z,A-Z,\\-,0-9,#]*;)|(&&(?!&+))")); + m = m - linestr.contains(TQRegExp("(&[a-z,A-Z,\\-,0-9,#]*;)|(&&(?!&+))")); hasError = hasError || ( n<=1 && m != n); } } |