diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 33e6166f7e62c479bad5d46ad240ea9704f848fd (patch) | |
tree | bc5e8185ff98d6a605247158ca6a5b924dccd67a /libk9copy/k9burndvd.cpp | |
parent | 68db2ce8a8c330a47485477eb3cee9e7036f6071 (diff) | |
download | k9copy-33e6166f7e62c479bad5d46ad240ea9704f848fd.tar.gz k9copy-33e6166f7e62c479bad5d46ad240ea9704f848fd.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk9copy/k9burndvd.cpp')
-rw-r--r-- | libk9copy/k9burndvd.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libk9copy/k9burndvd.cpp b/libk9copy/k9burndvd.cpp index 72be072..b9114de 100644 --- a/libk9copy/k9burndvd.cpp +++ b/libk9copy/k9burndvd.cpp @@ -69,7 +69,7 @@ void k9BurnDVD::makeIso(TQString _filename) { } void k9BurnDVD::setvolId(TQString _newVal) { - volId=_newVal.tqreplace(" ","_"); + volId=_newVal.replace(" ","_"); } void k9BurnDVD::setUseK3b(bool _newVal) { @@ -102,13 +102,13 @@ void k9BurnDVD::burnWithK3b() { void k9BurnDVD::mkisoSizeStderr(KProcess *proc, char *buffer, int buflen) { TQString c=TQString::tqfromLatin1( buffer,buflen);// (proc2->readStderr()); - imageSize=c.tqreplace("\n",""); + imageSize=c.replace("\n",""); ; } void k9BurnDVD::mkisoSizeStdout(KProcess *proc, char *buffer, int buflen) { TQString c=TQString::tqfromLatin1(buffer,buflen);// (proc2->readStdout()); - imageSize=c.tqreplace("\n",""); + imageSize=c.replace("\n",""); ; } @@ -336,19 +336,19 @@ void k9BurnDVD::growisoStderr(KProcess *proc, char *buffer, int buflen) { int a,b; int pos; lastMsg=c; - if (c.tqcontains("Current Write Speed")) { + if (c.contains("Current Write Speed")) { sscanf(c.latin1(),"%s \"Current Write Speed\" is %d.%d",s,&a,&b); burnSpeed=a+b/10; } - if (c.tqcontains("Speed set to")) { + if (c.contains("Speed set to")) { sscanf(c.latin1(),"Speed set to %d",&a); burnSpeed=a/1385; } progress->setTitle(i18n("Burning DVD")); progress->setLabelText(i18n("Current write speed :%1 x").tqarg(burnSpeed)); - if (c.tqcontains("% done")) { - pos=c.tqfind("%"); + if (c.contains("% done")) { + pos=c.find("%"); if (pos!=-1) { c=c.mid(1,pos-4); //progress->setLabelText(c); @@ -373,7 +373,7 @@ void k9BurnDVD::growisoStderr(KProcess *proc, char *buffer, int buflen) { void k9BurnDVD::growisoStdout(KProcess *proc, char *buffer, int buflen) { TQString c=TQString::tqfromLatin1( buffer,buflen);// (proc->readStdout()); int pos; - pos=c.tqfind("STAT"); + pos=c.find("STAT"); if (pos!=-1) { c=c.mid(pos); progress->setLabelText(c); |