diff options
Diffstat (limited to 'src/collectionfieldsdialog.cpp')
-rw-r--r-- | src/collectionfieldsdialog.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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<FieldListBox*>(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; } |