summaryrefslogtreecommitdiffstats
path: root/kbabel/datatools/accelerators
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbabel/datatools/accelerators
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-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/accelerators')
-rw-r--r--kbabel/datatools/accelerators/main.cc22
-rw-r--r--kbabel/datatools/accelerators/main.h10
2 files changed, 16 insertions, 16 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);
}
}
diff --git a/kbabel/datatools/accelerators/main.h b/kbabel/datatools/accelerators/main.h
index 4eba780e..ee9ae3a8 100644
--- a/kbabel/datatools/accelerators/main.h
+++ b/kbabel/datatools/accelerators/main.h
@@ -37,19 +37,19 @@
#include <kdatatool.h>
-#include <qregexp.h>
+#include <tqregexp.h>
class AcceleratorTool : public KDataTool
{
Q_OBJECT
public:
- AcceleratorTool( QObject* parent, const char* name, const QStringList & );
- virtual bool run( const QString& command, void* data, const QString& datatype, const QString& mimetype);
+ AcceleratorTool( TQObject* parent, const char* name, const TQStringList & );
+ virtual bool run( const TQString& command, void* data, const TQString& datatype, const TQString& mimetype);
private:
- QRegExp _context;
- QChar _marker;
+ TQRegExp _context;
+ TQChar _marker;
KBabel::Project::Ptr _cache_origin;
};