diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbabel/datatools/equations | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/datatools/equations')
-rw-r--r-- | kbabel/datatools/equations/main.cc | 6 | ||||
-rw-r--r-- | kbabel/datatools/equations/main.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/kbabel/datatools/equations/main.cc b/kbabel/datatools/equations/main.cc index 14a03cd6..64d19adf 100644 --- a/kbabel/datatools/equations/main.cc +++ b/kbabel/datatools/equations/main.cc @@ -52,13 +52,13 @@ K_EXPORT_COMPONENT_FACTORY( kbabel_equationstool, KGenericFactory<EquationsTool> using namespace KBabel; -EquationsTool::EquationsTool( QObject* parent, const char* name, const QStringList & ) +EquationsTool::EquationsTool( TQObject* parent, const char* name, const TQStringList & ) : KDataTool( parent, name ), _equation("^[a-zA-Z0-9]+=.+") { i18n("what check found errors","equations"); } -bool EquationsTool::run( const QString& command, void* data, const QString& datatype, const QString& mimetype ) +bool EquationsTool::run( const TQString& command, void* data, const TQString& datatype, const TQString& mimetype ) { if ( command != "validate" ) { @@ -90,7 +90,7 @@ bool EquationsTool::run( const QString& command, void* data, const QString& data && item->msgid().first().contains(_equation)) { int index = item->msgid().first().find('='); - QString left = item->msgid().first().left(index); + TQString left = item->msgid().first().left(index); index = item->msgstr().first().find('='); if(left != item->msgstr().first().left(index)) hasError = true; diff --git a/kbabel/datatools/equations/main.h b/kbabel/datatools/equations/main.h index 15337a1b..72fae529 100644 --- a/kbabel/datatools/equations/main.h +++ b/kbabel/datatools/equations/main.h @@ -33,7 +33,7 @@ #ifndef __main_h__ #define __main_h__ -#include <qregexp.h> +#include <tqregexp.h> #include <kdatatool.h> class EquationsTool : public KDataTool @@ -41,10 +41,10 @@ class EquationsTool : public KDataTool Q_OBJECT public: - EquationsTool( QObject* parent, const char* name, const QStringList & ); - virtual bool run( const QString& command, void* data, const QString& datatype, const QString& mimetype); + EquationsTool( TQObject* parent, const char* name, const TQStringList & ); + virtual bool run( const TQString& command, void* data, const TQString& datatype, const TQString& mimetype); private: - QRegExp _equation; + TQRegExp _equation; }; #endif |