diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 0254ebaa5e056092461fd585b6851d15faa43035 (patch) | |
tree | 2bf41a1c189b92dc1b9ab89e3ce392f8132214c4 /src/entryeditdialog.cpp | |
parent | fa071926f015f39711632b3fb9fe16004d93d0ec (diff) | |
download | tellico-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/entryeditdialog.cpp')
-rw-r--r-- | src/entryeditdialog.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/entryeditdialog.cpp b/src/entryeditdialog.cpp index 442fba3..6fc90fa 100644 --- a/src/entryeditdialog.cpp +++ b/src/entryeditdialog.cpp @@ -165,7 +165,7 @@ void EntryEditDialog::setLayout(Data::CollPtr coll_) { // then spacing should be 5, which is set later TQGridLayout* tqlayout = new TQGridLayout(grid, 0, NCOLS, 8, 2); // keramik styles make big widget, cut down the spacing a bit - if(TQCString(tqstyle().name()).lower().tqfind("keramik", 0, false) > -1) { + if(TQCString(tqstyle().name()).lower().find("keramik", 0, false) > -1) { tqlayout->setSpacing(0); } @@ -221,7 +221,7 @@ void EntryEditDialog::setLayout(Data::CollPtr coll_) { // now, the labels in a column should all be the same width it = fields.begin(); for(int count = 0; it != fields.end(); ++it) { - GUI::FieldWidget* widget = m_widgetDict.tqfind(TQString::number(m_currColl->id()) + it->name()); + GUI::FieldWidget* widget = m_widgetDict.find(TQString::number(m_currColl->id()) + it->name()); if(widget) { widget->setLabelWidth(maxWidth[count%NCOLS]); ++count; @@ -336,7 +336,7 @@ void EntryEditDialog::slotHandleSave() { } for(Data::FieldVec::Iterator fIt = fields.begin(); fIt != fields.end(); ++fIt) { TQString key = TQString::number(m_currColl->id()) + fIt->name(); - GUI::FieldWidget* widget = m_widgetDict.tqfind(key); + GUI::FieldWidget* widget = m_widgetDict.find(key); if(widget && widget->isEnabled()) { TQString temp = widget->text(); // ok to set field empty string, just not all of them @@ -463,7 +463,7 @@ void EntryEditDialog::setContents(Data::EntryVec entries_) { Data::FieldVec fields = m_currColl->fields(); for(Data::FieldVec::Iterator fIt = fields.begin(); fIt != fields.end(); ++fIt) { TQString key = TQString::number(m_currColl->id()) + fIt->name(); - GUI::FieldWidget* widget = m_widgetDict.tqfind(key); + GUI::FieldWidget* widget = m_widgetDict.find(key); if(!widget) { // probably read-only continue; } @@ -524,7 +524,7 @@ void EntryEditDialog::setContents(Data::EntryPtr entry_) { Data::FieldVec fields = m_currColl->fields(); for(Data::FieldVec::Iterator field = fields.begin(); field != fields.end(); ++field) { TQString key = TQString::number(m_currColl->id()) + field->name(); - GUI::FieldWidget* widget = m_widgetDict.tqfind(key); + GUI::FieldWidget* widget = m_widgetDict.find(key); if(!widget) { // is probably read-only continue; } @@ -552,13 +552,13 @@ void EntryEditDialog::removeField(Data::CollPtr, Data::FieldPtr field_) { // myDebug() << "EntryEditDialog::removeField - name = " << field_->name() << endl; TQString key = TQString::number(m_currColl->id()) + field_->name(); - GUI::FieldWidget* widget = m_widgetDict.tqfind(key); + GUI::FieldWidget* widget = m_widgetDict.find(key); if(widget) { m_widgetDict.remove(key); // if this is the last field in the category, need to remove the tab page // this function is called after the field has been removed from the collection, // so the category should be gone from the category list - if(m_currColl->fieldCategories().tqfindIndex(field_->category()) == -1) { + if(m_currColl->fieldCategories().findIndex(field_->category()) == -1) { // myDebug() << "last field in the category" << endl; // fragile, widget's tqparent is the grid, whose tqparent is the tab page TQWidget* w = widget->parentWidget()->parentWidget(); @@ -575,7 +575,7 @@ void EntryEditDialog::removeField(Data::CollPtr, Data::FieldPtr field_) { Data::FieldVec vec = m_currColl->fieldsByCategory(field_->category()); Data::FieldVec::Iterator it = vec.begin(); for(int count = 0; it != vec.end(); ++it) { - GUI::FieldWidget* widget = m_widgetDict.tqfind(TQString::number(m_currColl->id()) + it->name()); + GUI::FieldWidget* widget = m_widgetDict.find(TQString::number(m_currColl->id()) + it->name()); if(widget) { tqlayout->remove(widget); tqlayout->addWidget(widget, count/NCOLS, count%NCOLS); @@ -592,7 +592,7 @@ void EntryEditDialog::removeField(Data::CollPtr, Data::FieldPtr field_) { // now, the labels in a column should all be the same width it = vec.begin(); for(int count = 0; it != vec.end(); ++it) { - GUI::FieldWidget* widget = m_widgetDict.tqfind(TQString::number(m_currColl->id()) + it->name()); + GUI::FieldWidget* widget = m_widgetDict.find(TQString::number(m_currColl->id()) + it->name()); if(widget) { widget->setLabelWidth(maxWidth[count%NCOLS]); ++count; @@ -625,7 +625,7 @@ void EntryEditDialog::updateCompletions(Data::EntryPtr entry_) { } TQString key = TQString::number(m_currColl->id()) + it->name(); - GUI::FieldWidget* widget = m_widgetDict.tqfind(key); + GUI::FieldWidget* widget = m_widgetDict.find(key); if(!widget) { continue; } @@ -734,7 +734,7 @@ void EntryEditDialog::modifyEntries(Data::EntryVec entries_) { bool updateContents = false; for(Data::EntryVecIt entry = entries_.begin(); entry != entries_.end(); ++entry) { updateCompletions(entry); - if(!updateContents && m_currEntries.tqcontains(entry)) { + if(!updateContents && m_currEntries.contains(entry)) { updateContents = true; } } |