diff options
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; } } |