diff options
Diffstat (limited to 'kbabel/datatools/punctuation')
-rw-r--r-- | kbabel/datatools/punctuation/main.cc | 22 | ||||
-rw-r--r-- | kbabel/datatools/punctuation/main.h | 4 |
2 files changed, 13 insertions, 13 deletions
diff --git a/kbabel/datatools/punctuation/main.cc b/kbabel/datatools/punctuation/main.cc index 433d9711..8806b536 100644 --- a/kbabel/datatools/punctuation/main.cc +++ b/kbabel/datatools/punctuation/main.cc @@ -51,14 +51,14 @@ K_EXPORT_COMPONENT_FACTORY( kbabel_punctuationtool, KGenericFactory<PunctuationT using namespace KBabel; -PunctuationTool::PunctuationTool( QObject* parent, const char* name, const QStringList & ) +PunctuationTool::PunctuationTool( TQObject* parent, const char* name, const TQStringList & ) : KDataTool( parent, name ) { // bogus translation just for allowing the translation i18n("what check found errors","punctuation"); } -bool PunctuationTool::run( const QString& command, void* data, const QString& datatype, const QString& mimetype ) +bool PunctuationTool::run( const TQString& command, void* data, const TQString& datatype, const TQString& mimetype ) { if ( command != "validate" ) { @@ -88,23 +88,23 @@ bool PunctuationTool::run( const QString& command, void* data, const QString& da if(!item->isUntranslated()) { - QString lineid=item->msgid().first(); + TQString lineid=item->msgid().first(); // lookup punctuation in original text - QRegExp punc("[\\.!\\?:]+$"); + TQRegExp punc("[\\.!\\?:]+$"); int i = lineid.find(punc); - QString t(""); + TQString t(""); if( i != -1 ) t = lineid.right(lineid.length()-i); if( item->pluralForm() != NoPluralForm ) { // check, that both plural forms contain the same punctuation - QString pl = *(item->msgid().at(1)); + TQString pl = *(item->msgid().at(1)); int j = pl.find(punc); - QString tp(""); + TQString tp(""); if( j != -1 ) tp = pl.right(pl.length()-j); if( tp != t ) @@ -113,14 +113,14 @@ bool PunctuationTool::run( const QString& command, void* data, const QString& da } } - QStringList forms = item->msgstr(true); + TQStringList forms = item->msgstr(true); if( item->pluralForm() == KDESpecific ) { - forms = QStringList::split("\\n",*item->msgstr(true).at(0)); + forms = TQStringList::split("\\n",*item->msgstr(true).at(0)); } - for( QStringList::Iterator form = forms.begin() ; form != forms.end(); form++ ) + for( TQStringList::Iterator form = forms.begin() ; form != forms.end(); form++ ) { - QString linestr=(*form); + TQString linestr=(*form); int j = linestr.find(punc); diff --git a/kbabel/datatools/punctuation/main.h b/kbabel/datatools/punctuation/main.h index 63a36d62..eb30293f 100644 --- a/kbabel/datatools/punctuation/main.h +++ b/kbabel/datatools/punctuation/main.h @@ -40,8 +40,8 @@ class PunctuationTool : public KDataTool Q_OBJECT public: - PunctuationTool( QObject* parent, const char* name, const QStringList & ); - virtual bool run( const QString& command, void* data, const QString& datatype, const QString& mimetype); + PunctuationTool( TQObject* parent, const char* name, const TQStringList & ); + virtual bool run( const TQString& command, void* data, const TQString& datatype, const TQString& mimetype); }; #endif |