summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/KoTemplateCreateDia.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitb6edfe41c9395f2e20784cbf0e630af6426950a3 (patch)
tree56ed9b871d4296e6c15949c24e16420be1b28697 /lib/kofficeui/KoTemplateCreateDia.cpp
parentef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff)
downloadkoffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz
koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kofficeui/KoTemplateCreateDia.cpp')
-rw-r--r--lib/kofficeui/KoTemplateCreateDia.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kofficeui/KoTemplateCreateDia.cpp b/lib/kofficeui/KoTemplateCreateDia.cpp
index 756c6e2a..213e694f 100644
--- a/lib/kofficeui/KoTemplateCreateDia.cpp
+++ b/lib/kofficeui/KoTemplateCreateDia.cpp
@@ -228,7 +228,7 @@ void KoTemplateCreateDia::slotOk() {
return;
}
- KoTemplateGroup *group=d->m_tree->tqfind(item->text(0));
+ KoTemplateGroup *group=d->m_tree->find(item->text(0));
if(!group) { // even safer
d->m_tree->writeTemplateTree();
KDialogBase::slotCancel();
@@ -254,7 +254,7 @@ void KoTemplateCreateDia::slotOk() {
icon+=".png";
// try to find the extension for the template file :P
- const int pos = m_file.tqfindRev( '.' );
+ const int pos = m_file.findRev( '.' );
TQString ext;
if ( pos > -1 )
ext = m_file.mid( pos );
@@ -278,7 +278,7 @@ void KoTemplateCreateDia::slotOk() {
kdDebug(30004) << "Trying to create template: " << d->m_name->text() << "URL=" << ".source/"+file+ext << " ICON=" << tmpIcon << endl;
KoTemplate *t=new KoTemplate(d->m_name->text(), TQString(), ".source/"+file+ext, tmpIcon, "", "", false, true);
if(!group->add(t)) {
- KoTemplate *existingTemplate=group->tqfind(d->m_name->text());
+ KoTemplate *existingTemplate=group->find(d->m_name->text());
if(existingTemplate && !existingTemplate->isHidden()) {
if(KMessageBox::warningYesNo(this, i18n("Do you really want to overwrite"
" the existing '%1' template?").
@@ -321,7 +321,7 @@ void KoTemplateCreateDia::slotOk() {
bool ready=false;
TQStringList tmp=group->dirs();
for(TQStringList::ConstIterator it=tmp.begin(); it!=tmp.end() && !ready; ++it) {
- if((*it).tqcontains(dir)==0) {
+ if((*it).contains(dir)==0) {
orig.setPath( (*it)+".directory" );
// Check if we can read the file
if( KIO::NetAccess::exists(orig, true, this) ) {
@@ -395,7 +395,7 @@ void KoTemplateCreateDia::slotAddGroup() {
const TQString name ( KInputDialog::getText( i18n("Add Group"), i18n("Enter group name:"), TQString(), &ok, this ) );
if(!ok)
return;
- KoTemplateGroup *group=d->m_tree->tqfind(name);
+ KoTemplateGroup *group=d->m_tree->find(name);
if(group && !group->isHidden())
{
KMessageBox::information( this, i18n("This name is already used."), i18n("Add Group") );
@@ -436,14 +436,14 @@ void KoTemplateCreateDia::slotRemove() {
}
if(item->depth()==0) {
- KoTemplateGroup *group=d->m_tree->tqfind(item->text(0));
+ KoTemplateGroup *group=d->m_tree->find(item->text(0));
if(group)
group->setHidden(true);
}
else {
bool done=false;
for(KoTemplateGroup *g=d->m_tree->first(); g!=0L && !done; g=d->m_tree->next()) {
- KoTemplate *t=g->tqfind(item->text(0));
+ KoTemplate *t=g->find(item->text(0));
if(t) {
t->setHidden(true);
done=true;