From 33e6166f7e62c479bad5d46ad240ea9704f848fd Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- k9author/k9import.cpp | 2 +- k9author/k9menuedit.cpp | 2 +- k9author/k9menueditor.cpp | 4 ++-- k9author/k9newdvd.cpp | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'k9author') diff --git a/k9author/k9import.cpp b/k9author/k9import.cpp index 993f2d1..13976e7 100644 --- a/k9author/k9import.cpp +++ b/k9author/k9import.cpp @@ -73,7 +73,7 @@ void k9Import::deviceAdded(k9CdDrive *_drive) { void k9Import::deviceRemoved(k9CdDrive *_drive) { - int i=recorderList.tqfind(_drive); + int i=recorderList.find(_drive); recorderList.remove( i); cbOutputDev->removeItem(i+2); diff --git a/k9author/k9menuedit.cpp b/k9author/k9menuedit.cpp index 1cd5a81..ec53c03 100644 --- a/k9author/k9menuedit.cpp +++ b/k9author/k9menuedit.cpp @@ -164,7 +164,7 @@ void k9MenuEdit::leTitleChanged(const TQString &_value) { TQPtrList *l=m_menuEditor->getSelection(); for (k9MenuButton *b=l->first();b;b=l->next()) { TQString c=_value; - b->setText(c.tqreplace("%n",TQString::number(b->getNum()))); + b->setText(c.replace("%n",TQString::number(b->getNum()))); } //m_menuEditor->getSelected()->setText(_value); } else { diff --git a/k9author/k9menueditor.cpp b/k9author/k9menueditor.cpp index fa227d0..f0ea2b3 100644 --- a/k9author/k9menueditor.cpp +++ b/k9author/k9menueditor.cpp @@ -92,7 +92,7 @@ void k9MenuEditor::clearSelection() { bool k9MenuEditor::isSelected(TQCanvasItem *_item) { k9CanvasSprite *s=(k9CanvasSprite *)_item; k9MenuButton *button=s->getButton(); - if (m_selection.tqfind(button) !=-1) + if (m_selection.find(button) !=-1) return true; else return false; @@ -101,7 +101,7 @@ bool k9MenuEditor::isSelected(TQCanvasItem *_item) { void k9MenuEditor::addSelection(TQCanvasItem *_item) { k9CanvasSprite *s=(k9CanvasSprite *)_item; k9MenuButton *button=s->getButton(); - if (m_selection.tqfind(button) !=-1) { + if (m_selection.find(button) !=-1) { button->select(false); m_selection.remove(button); } else { diff --git a/k9author/k9newdvd.cpp b/k9author/k9newdvd.cpp index 3fa8c5b..5f0500e 100644 --- a/k9author/k9newdvd.cpp +++ b/k9author/k9newdvd.cpp @@ -276,13 +276,13 @@ void k9NewDVD::getStderr(KProcess *_process, char *_buffer, int _length) { TQCString tmp(_buffer,_length); m_stdout=tmp; int pos; - if (tmp.tqcontains("STAT:")) { - pos=tmp.tqfind("fixing VOBU"); + if (tmp.contains("STAT:")) { + pos=tmp.find("fixing VOBU"); if (pos!=-1) { TQString tmp2=tmp; // m_progress->setTitle(i18n("Authoring")); // m_progress->setLabelText(i18n("Fixing VOBUS")); - int end=tmp2.tqfind("%"); + int end=tmp2.find("%"); if (end!=-1) { pos =end -2; tmp2=tmp2.mid(pos,end-pos); @@ -290,7 +290,7 @@ void k9NewDVD::getStderr(KProcess *_process, char *_buffer, int _length) { // m_progress->setProgress(tmp2.toInt(),100); } } else { - pos=tmp.tqfind("STAT: VOBU "); + pos=tmp.find("STAT: VOBU "); if (pos !=-1) { TQCString tmp2(_buffer+pos,_length-pos); int vobu,mb; @@ -312,10 +312,10 @@ void k9NewDVD::getStdout(KProcess *_process, char *_buffer, int _length) { k9Process *process=(k9Process*) _process; if (m_timers[process].elapsed() >500) { TQCString tmp(_buffer,_length); - int pos=tmp.tqfind("Pos:"); + int pos=tmp.find("Pos:"); if (pos!=-1) { TQString tmp2=tmp.mid(pos); - tmp2=tmp2.tqreplace(":",": ").tqreplace("(","").tqreplace(")","").simplifyWhiteSpace(); + tmp2=tmp2.replace(":",": ").replace("(","").replace(")","").simplifyWhiteSpace(); TQStringList sl=TQStringList::split(" ",tmp2); float position; sscanf(sl[1].latin1(),"%fs",&position); -- cgit v1.2.1