summaryrefslogtreecommitdiffstats
path: root/kbabel/filters/gettext
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-13 00:26:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-13 00:26:14 +0000
commite192d1b3be27a26e344ae48cc6aea31185fe0a99 (patch)
tree080c21ee8a1a1a496c0b37b2a8fcb3381de04cd2 /kbabel/filters/gettext
parent6e7b4925121d177e954df2cca45443cfd78bda40 (diff)
downloadtdesdk-e192d1b3be27a26e344ae48cc6aea31185fe0a99.tar.gz
tdesdk-e192d1b3be27a26e344ae48cc6aea31185fe0a99.zip
Finish TQt4 porting of kdesdk (kbabel)
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236386 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/filters/gettext')
-rw-r--r--kbabel/filters/gettext/gettextexport.cpp4
-rw-r--r--kbabel/filters/gettext/gettextimport.cpp12
2 files changed, 8 insertions, 8 deletions
diff --git a/kbabel/filters/gettext/gettextexport.cpp b/kbabel/filters/gettext/gettextexport.cpp
index 21db665e..40911c59 100644
--- a/kbabel/filters/gettext/gettextexport.cpp
+++ b/kbabel/filters/gettext/gettextexport.cpp
@@ -164,7 +164,7 @@ ConversiontqStatus GettextExportPlugin::save(const TQString& localFile , const T
stream << "\n";
- kapp->processEvents(10);
+ kapp->tqprocessEvents(10);
if( isStopped() )
{
return STOPPED;
@@ -181,7 +181,7 @@ ConversiontqStatus GettextExportPlugin::save(const TQString& localFile , const T
{
stream << (*oit) << "\n\n";
- kapp->processEvents(10);
+ kapp->tqprocessEvents(10);
if( isStopped() )
{
return STOPPED;
diff --git a/kbabel/filters/gettext/gettextimport.cpp b/kbabel/filters/gettext/gettextimport.cpp
index 848cfeb1..ce1680d4 100644
--- a/kbabel/filters/gettext/gettextimport.cpp
+++ b/kbabel/filters/gettext/gettextimport.cpp
@@ -106,7 +106,7 @@ ConversiontqStatus GettextImportPlugin::load(const TQString& filename, const TQS
//recoveredErrorInHeader = true;
}
- TQIODevice *dev = stream.device();
+ TQIODevice *dev = stream.tqdevice();
int fileSize = dev->size();
// if somethings goes wrong with the parsing, we don't have deleted the old contents
@@ -173,7 +173,7 @@ ConversiontqStatus GettextImportPlugin::load(const TQString& filename, const TQS
while( !stream.eof() )
{
- kapp->processEvents(10);
+ kapp->tqprocessEvents(10);
if( isStopped() )
{
return STOPPED;
@@ -363,7 +363,7 @@ TQTextCodec* GettextImportPlugin::codecForArray(TQByteArray& array, bool* hadCod
ConversiontqStatus GettextImportPlugin::readHeader(TQTextStream& stream)
{
CatalogItem temp;
- int filePos=stream.device()->at();
+ int filePos=stream.tqdevice()->at();
ConversiontqStatus status=readEntry(stream);
if(status==OK || status==RECOVERED_PARSE_ERROR)
@@ -371,7 +371,7 @@ ConversiontqStatus GettextImportPlugin::readHeader(TQTextStream& stream)
// test if this is the header
if(!_msgid.first().isEmpty())
{
- stream.device()->at(filePos);
+ stream.tqdevice()->at(filePos);
}
return status;
@@ -402,7 +402,7 @@ ConversiontqStatus GettextImportPlugin::readEntry(TQTextStream& stream)
while( !stream.eof() )
{
- const int pos=stream.device()->at();
+ const int pos=stream.tqdevice()->at();
line=stream.readLine();
@@ -761,7 +761,7 @@ ConversiontqStatus GettextImportPlugin::readEntry(TQTextStream& stream)
else if((line.tqfind(TQRegExp("^\\s*msgid")) != -1) || (line.tqfind(TQRegExp("^\\s*#")) != -1))
{
// We have read successfully one entry, so end loop.
- stream.device()->at(pos);// reset position in stream to beginning of this line
+ stream.tqdevice()->at(pos);// reset position in stream to beginning of this line
break;
}
else if(line.startsWith("msgstr"))