diff options
Diffstat (limited to 'kbabel/datatools/equations')
-rw-r--r-- | kbabel/datatools/equations/main.cc | 18 | ||||
-rw-r--r-- | kbabel/datatools/equations/main.h | 9 |
2 files changed, 14 insertions, 13 deletions
diff --git a/kbabel/datatools/equations/main.cc b/kbabel/datatools/equations/main.cc index 64d19adf..96cb3057 100644 --- a/kbabel/datatools/equations/main.cc +++ b/kbabel/datatools/equations/main.cc @@ -19,11 +19,11 @@ In addition, as a special exception, the copyright holders give permission to link the code of this program with any edition of - the Qt library by Trolltech AS, Norway (or with modified versions - of Qt that use the same license as Qt), and distribute linked + the TQt library by Trolltech AS, Norway (or with modified versions + of TQt that use the same license as TQt), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than - Qt. If you modify this file, you may extend this exception to + TQt. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. @@ -52,8 +52,8 @@ K_EXPORT_COMPONENT_FACTORY( kbabel_equationstool, KGenericFactory<EquationsTool> using namespace KBabel; -EquationsTool::EquationsTool( TQObject* parent, const char* name, const TQStringList & ) - : KDataTool( parent, name ), _equation("^[a-zA-Z0-9]+=.+") +EquationsTool::EquationsTool( TQObject* tqparent, const char* name, const TQStringList & ) + : KDataTool( tqparent, name ), _equation("^[a-zA-Z0-9]+=.+") { i18n("what check found errors","equations"); } @@ -86,12 +86,12 @@ bool EquationsTool::run( const TQString& command, void* data, const TQString& da bool hasError = false; - if(!item->isUntranslated() && !item->msgid().first().contains('\n') - && item->msgid().first().contains(_equation)) + if(!item->isUntranslated() && !item->msgid().first().tqcontains('\n') + && item->msgid().first().tqcontains(_equation)) { - int index = item->msgid().first().find('='); + int index = item->msgid().first().tqfind('='); TQString left = item->msgid().first().left(index); - index = item->msgstr().first().find('='); + index = item->msgstr().first().tqfind('='); if(left != item->msgstr().first().left(index)) hasError = true; } diff --git a/kbabel/datatools/equations/main.h b/kbabel/datatools/equations/main.h index 72fae529..11adddaf 100644 --- a/kbabel/datatools/equations/main.h +++ b/kbabel/datatools/equations/main.h @@ -19,11 +19,11 @@ In addition, as a special exception, the copyright holders give permission to link the code of this program with any edition of - the Qt library by Trolltech AS, Norway (or with modified versions - of Qt that use the same license as Qt), and distribute linked + the TQt library by Trolltech AS, Norway (or with modified versions + of TQt that use the same license as TQt), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than - Qt. If you modify this file, you may extend this exception to + TQt. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. @@ -39,9 +39,10 @@ class EquationsTool : public KDataTool { Q_OBJECT + TQ_OBJECT public: - EquationsTool( TQObject* parent, const char* name, const TQStringList & ); + EquationsTool( TQObject* tqparent, const char* name, const TQStringList & ); virtual bool run( const TQString& command, void* data, const TQString& datatype, const TQString& mimetype); private: TQRegExp _equation; |