From 0254ebaa5e056092461fd585b6851d15faa43035 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/tellico@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/collectionfieldsdialog.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/collectionfieldsdialog.cpp') diff --git a/src/collectionfieldsdialog.cpp b/src/collectionfieldsdialog.cpp index ab68873..3491bb4 100644 --- a/src/collectionfieldsdialog.cpp +++ b/src/collectionfieldsdialog.cpp @@ -313,7 +313,7 @@ void CollectionFieldsDialog::applyChanges() { TQStringList oldValues = m_coll->fieldByName(field->name())->allowed(); TQStringList newValues = field->allowed(); for(TQStringList::ConstIterator vIt = oldValues.begin(); vIt != oldValues.end(); ++vIt) { - if(newValues.tqcontains(*vIt)) { + if(newValues.contains(*vIt)) { continue; } int ret = KMessageBox::warningContinueCancel(this, @@ -407,7 +407,7 @@ void CollectionFieldsDialog::slotNew() { TQString name = TQString::tqfromLatin1("custom") + TQString::number(m_newFields.count()+1); int count = m_newFields.count() + 1; TQString title = i18n("New Field") + TQString::tqfromLatin1(" %1").tqarg(count); - while(m_fieldsBox->tqfindItem(title)) { + while(m_fieldsBox->findItem(title)) { ++count; title = i18n("New Field") + TQString::tqfromLatin1(" %1").tqarg(count); } @@ -432,7 +432,7 @@ void CollectionFieldsDialog::slotDelete() { return; } - if(m_newFields.tqcontains(m_currentField)) { + if(m_newFields.contains(m_currentField)) { // remove field from vector before deleting item containing field m_newFields.remove(m_currentField); m_fieldsBox->removeItem(m_fieldsBox->currentItem()); @@ -533,7 +533,7 @@ void CollectionFieldsDialog::slotHighlightedChanged(int index_) { // type is limited to certain types, unless it's a new field m_typeCombo->clear(); - if(m_newFields.tqcontains(field)) { + if(m_newFields.contains(field)) { m_typeCombo->insertStringList(newTypesAllowed(Data::Field::Undef)); } else { m_typeCombo->insertStringList(newTypesAllowed(field->type())); @@ -601,7 +601,7 @@ void CollectionFieldsDialog::updateField() { } // only update name if it's one of the new ones - if(m_newFields.tqcontains(field)) { + if(m_newFields.contains(field)) { // name needs to be a valid XML element name TQString name = XML::elementName(m_titleEdit->text().lower()); if(name.isEmpty()) { // might end up with empty string @@ -699,13 +699,13 @@ void CollectionFieldsDialog::slotModified() { static_cast(m_fieldsBox->selectedItem())->setColored(true); // check if copy exists already - if(m_copiedFields.tqcontains(m_currentField)) { + if(m_copiedFields.contains(m_currentField)) { return; } // or, check if is a new field, in which case no copy is needed // check if copy exists already - if(m_newFields.tqcontains(m_currentField)) { + if(m_newFields.contains(m_currentField)) { return; } -- cgit v1.2.1