summaryrefslogtreecommitdiffstats
path: root/kbabel/datatools/punctuation/main.cc
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/punctuation/main.cc
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/punctuation/main.cc')
-rw-r--r--kbabel/datatools/punctuation/main.cc22
1 files changed, 11 insertions, 11 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);