summaryrefslogtreecommitdiffstats
path: root/src/collectionfieldsdialog.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
commit0254ebaa5e056092461fd585b6851d15faa43035 (patch)
tree2bf41a1c189b92dc1b9ab89e3ce392f8132214c4 /src/collectionfieldsdialog.cpp
parentfa071926f015f39711632b3fb9fe16004d93d0ec (diff)
downloadtellico-0254ebaa5e056092461fd585b6851d15faa43035.tar.gz
tellico-0254ebaa5e056092461fd585b6851d15faa43035.zip
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
Diffstat (limited to 'src/collectionfieldsdialog.cpp')
-rw-r--r--src/collectionfieldsdialog.cpp14
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;
}