diff options
Diffstat (limited to 'kmymoney2/dialogs')
20 files changed, 48 insertions, 48 deletions
diff --git a/kmymoney2/dialogs/investactivities.cpp b/kmymoney2/dialogs/investactivities.cpp index b03548a..526b54e 100644 --- a/kmymoney2/dialogs/investactivities.cpp +++ b/kmymoney2/dialogs/investactivities.cpp @@ -44,7 +44,7 @@ bool Activity::isComplete(TQString& reason) const bool rc = false; KMyMoneySecurity* security = dynamic_cast<KMyMoneySecurity*>(haveWidget("security")); if(!security->currentText().isEmpty()) { - rc = security->selector()->tqcontains(security->currentText()); + rc = security->selector()->contains(security->currentText()); } return rc; } @@ -58,7 +58,7 @@ bool Activity::haveAssetAccount(void) const rc = !cat->currentText().isEmpty(); if(rc && !cat->currentText().isEmpty()) { - rc = cat->selector()->tqcontains(cat->currentText()); + rc = cat->selector()->contains(cat->currentText()); } return rc; } @@ -72,7 +72,7 @@ bool Activity::haveCategoryAndAmount(const TQString& category, const TQString& a rc = !cat->currentText().isEmpty(); if(rc && !cat->currentText().isEmpty()) { - rc = cat->selector()->tqcontains(cat->currentText()) || cat->isSplitTransaction(); + rc = cat->selector()->contains(cat->currentText()) || cat->isSplitTransaction(); if(rc && !amount.isEmpty()) { MyMoneyMoney value = dynamic_cast<kMyMoneyEdit*>(haveWidget(amount))->value(); if(!isMultiSelection()) diff --git a/kmymoney2/dialogs/investtransactioneditor.cpp b/kmymoney2/dialogs/investtransactioneditor.cpp index e19a756..6e777ca 100644 --- a/kmymoney2/dialogs/investtransactioneditor.cpp +++ b/kmymoney2/dialogs/investtransactioneditor.cpp @@ -875,7 +875,7 @@ bool InvestTransactionEditor::setupPrice(const MyMoneyTransaction& t, MyMoneySpl if(acc.currencyId() != t.commodity()) { TQMap<TQString, MyMoneyMoney>::Iterator it_p; TQString key = t.commodity() + "-" + acc.currencyId(); - it_p = m_priceInfo.tqfind(key); + it_p = m_priceInfo.find(key); // if it's not found, then collect it from the user first MyMoneyMoney price; diff --git a/kmymoney2/dialogs/kbalancewarning.cpp b/kmymoney2/dialogs/kbalancewarning.cpp index 358210c..f42be18 100644 --- a/kmymoney2/dialogs/kbalancewarning.cpp +++ b/kmymoney2/dialogs/kbalancewarning.cpp @@ -54,7 +54,7 @@ KBalanceWarning::~KBalanceWarning() void KBalanceWarning::slotShowMessage(TQWidget* tqparent, const MyMoneyAccount& account, const TQString& msg) { - if(d->m_deselectedAccounts.tqfind(account.id()) == d->m_deselectedAccounts.end()) { + if(d->m_deselectedAccounts.find(account.id()) == d->m_deselectedAccounts.end()) { KMessageBox::information(tqparent, msg, TQString(), d->dontShowAgain()); if(!KMessageBox::shouldBeShownContinue(d->dontShowAgain())) { d->m_deselectedAccounts[account.id()] = true; diff --git a/kmymoney2/dialogs/kcurrencycalculator.cpp b/kmymoney2/dialogs/kcurrencycalculator.cpp index c27e337..1b73ecd 100644 --- a/kmymoney2/dialogs/kcurrencycalculator.cpp +++ b/kmymoney2/dialogs/kcurrencycalculator.cpp @@ -72,7 +72,7 @@ bool KCurrencyCalculator::setupSplitPrice(MyMoneyMoney& shares, const MyMoneyTra fromValue = s.value().abs(); // if we had a price info in the beginning, we use it here - if(priceInfo.tqfind(cat.currencyId()) != priceInfo.end()) { + if(priceInfo.find(cat.currencyId()) != priceInfo.end()) { toValue = (fromValue * priceInfo[cat.currencyId()]).convert(fract); } diff --git a/kmymoney2/dialogs/keditloanwizard.cpp b/kmymoney2/dialogs/keditloanwizard.cpp index 3992550..7fda8bc 100644 --- a/kmymoney2/dialogs/keditloanwizard.cpp +++ b/kmymoney2/dialogs/keditloanwizard.cpp @@ -234,7 +234,7 @@ void KEditLoanWizard::loadWidgets(const MyMoneyAccount& /* account */) void KEditLoanWizard::next() { bool dontLeavePage = false; - TQButton* button = m_selectionButtonGroup->tqfind(m_lastSelection); + TQButton* button = m_selectionButtonGroup->find(m_lastSelection); if(currentPage() == m_editSelectionPage) { diff --git a/kmymoney2/dialogs/keditscheduledlg.cpp b/kmymoney2/dialogs/keditscheduledlg.cpp index ecb9184..42fc31e 100644 --- a/kmymoney2/dialogs/keditscheduledlg.cpp +++ b/kmymoney2/dialogs/keditscheduledlg.cpp @@ -394,7 +394,7 @@ bool KEditScheduleDlg::focusNextPrevChild(bool next) TQWidget *currentWidget; w = tqApp->tqfocusWidget(); - while(w && d->m_tabOrderWidgets.tqfind(w) == -1) { + while(w && d->m_tabOrderWidgets.find(w) == -1) { // qDebug("'%s' not in list, use tqparent", w->className()); w = w->parentWidget(); } diff --git a/kmymoney2/dialogs/kenterscheduledlg.cpp b/kmymoney2/dialogs/kenterscheduledlg.cpp index df6f893..58d2e25 100644 --- a/kmymoney2/dialogs/kenterscheduledlg.cpp +++ b/kmymoney2/dialogs/kenterscheduledlg.cpp @@ -290,7 +290,7 @@ bool KEnterScheduleDlg::focusNextPrevChild(bool next) TQWidget *currentWidget; w = tqApp->tqfocusWidget(); - while(w && d->m_tabOrderWidgets.tqfind(w) == -1) { + while(w && d->m_tabOrderWidgets.find(w) == -1) { // qDebug("'%s' not in list, use tqparent", w->className()); w = w->parentWidget(); } diff --git a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp index f5014d0..ede8f88 100644 --- a/kmymoney2/dialogs/kequitypriceupdatedlg.cpp +++ b/kmymoney2/dialogs/kequitypriceupdatedlg.cpp @@ -185,7 +185,7 @@ void KEquityPriceUpdateDlg::addPricePair(const MyMoneySecurityPair& pair, bool d TQString symbol = TQString("%1 > %2").tqarg(pair.first,pair.second); TQString id = TQString("%1 %2").tqarg(pair.first,pair.second); - if ( ! lvEquityList->tqfindItem(id,ID_COL,TQt::ExactMatch) ) + if ( ! lvEquityList->findItem(id,ID_COL,TQt::ExactMatch) ) { MyMoneyPrice pr = file->price(pair.first,pair.second); if(pr.source() != "KMyMoney") { @@ -237,7 +237,7 @@ void KEquityPriceUpdateDlg::addInvestment(const MyMoneySecurity& inv) TQString symbol = inv.tradingSymbol(); TQString id = inv.id(); - if ( ! lvEquityList->tqfindItem(id, ID_COL, TQt::ExactMatch) ) + if ( ! lvEquityList->findItem(id, ID_COL, TQt::ExactMatch) ) { // check that the security is still in use TQValueList<MyMoneyAccount>::const_iterator it_a; @@ -290,14 +290,14 @@ MyMoneyPrice KEquityPriceUpdateDlg::price(const TQString& id) const MyMoneyPrice price; TQListViewItem* item; - if((item = lvEquityList->tqfindItem(id, ID_COL, TQt::ExactMatch)) != 0) { + if((item = lvEquityList->findItem(id, ID_COL, TQt::ExactMatch)) != 0) { MyMoneyMoney rate(item->text(PRICE_COL)); if ( !rate.isZero() ) { TQString id = item->text(ID_COL).utf8(); // if the ID has a space, then this is TWO ID's, so it's a currency quote - if ( TQString(id).tqcontains(" ") ) + if ( TQString(id).contains(" ") ) { TQStringList ids = TQStringList::split(" ",TQString(id)); TQString fromid = ids[0].utf8(); @@ -337,7 +337,7 @@ void KEquityPriceUpdateDlg::storePrices(void) TQString id = item->text(ID_COL).utf8(); // if the ID has a space, then this is TWO ID's, so it's a currency quote - if ( TQString(id).tqcontains(" ") ) + if ( TQString(id).contains(" ") ) { TQStringList ids = TQStringList::split(" ",TQString(id)); TQString fromid = ids[0].utf8(); @@ -417,11 +417,11 @@ void KEquityPriceUpdateDlg::slotUpdateAllClicked(void) void KEquityPriceUpdateDlg::slotQuoteFailed(const TQString& _id, const TQString& _symbol) { - TQListViewItem* item = lvEquityList->tqfindItem(_id,ID_COL,TQt::ExactMatch); + TQListViewItem* item = lvEquityList->findItem(_id,ID_COL,TQt::ExactMatch); // Give the user some options int result; - if(_id.tqcontains(" ")) { + if(_id.contains(" ")) { result = KMessageBox::warningContinueCancel(this, i18n("Failed to retrieve an exchange rate for %1 from %2. It will be skipped this time.").tqarg(_symbol, item->text(SOURCE_COL)), i18n("Price Update Failed")); } else { result = KMessageBox::questionYesNoCancel(this, TQString("<qt>%1</qt>").tqarg(i18n("Failed to retrieve a quote for %1 from %2. Press <b>No</b> to remove the online price source from this security permanently, <b>Yes</b> to continue updating this security during future price updates or <b>Cancel</b> to stop the current update operation.").tqarg(_symbol, item->text(SOURCE_COL))), i18n("Price Update Failed"), KStdGuiItem::yes(), KStdGuiItem::no()); @@ -484,7 +484,7 @@ void KEquityPriceUpdateDlg::slotQuoteFailed(const TQString& _id, const TQString& void KEquityPriceUpdateDlg::slotReceivedQuote(const TQString& _id, const TQString& _symbol,const TQDate& _date, const double& _price) { - TQListViewItem* item = lvEquityList->tqfindItem(_id,ID_COL,TQt::ExactMatch); + TQListViewItem* item = lvEquityList->findItem(_id,ID_COL,TQt::ExactMatch); TQListViewItem* next = NULL; if ( item ) @@ -498,7 +498,7 @@ void KEquityPriceUpdateDlg::slotReceivedQuote(const TQString& _id, const TQStrin double price = _price; TQString id = _id.utf8(); MyMoneySecurity sec; - if ( _id.tqcontains(" ") == 0) { + if ( _id.contains(" ") == 0) { MyMoneySecurity security = MyMoneyFile::instance()->security(id); TQString factor = security.value("kmm-online-factor"); if(!factor.isEmpty()) { diff --git a/kmymoney2/dialogs/kexportdlg.cpp b/kmymoney2/dialogs/kexportdlg.cpp index 701d138..a0b5743 100644 --- a/kmymoney2/dialogs/kexportdlg.cpp +++ b/kmymoney2/dialogs/kexportdlg.cpp @@ -143,7 +143,7 @@ void KExportDlg::loadProfiles(const bool selectLast) } m_profileComboBox->setCurrentItem(0); - if(list.tqcontains(current) > 0) + if(list.contains(current) > 0) m_profileComboBox->setCurrentText(current); } @@ -243,7 +243,7 @@ void KExportDlg::loadAccounts(void) /* m_accountComboBox->setCurrentItem(0); - if(strList.tqcontains(current) > 0) + if(strList.contains(current) > 0) m_accountComboBox->setCurrentText(current); */ } diff --git a/kmymoney2/dialogs/kfindtransactiondlg.cpp b/kmymoney2/dialogs/kfindtransactiondlg.cpp index a1d5214..5c7a789 100644 --- a/kmymoney2/dialogs/kfindtransactiondlg.cpp +++ b/kmymoney2/dialogs/kfindtransactiondlg.cpp @@ -307,7 +307,7 @@ void KFindTransactionDlg::selectItems(TQListView* view, const TQStringList& list for(it_v = view->firstChild(); it_v != 0; it_v = it_v->nextSibling()) { KMyMoneyCheckListItem* it_c = static_cast<KMyMoneyCheckListItem*>(it_v); - if(it_c->type() == TQCheckListItem::CheckBox && list.tqcontains(it_c->id())) { + if(it_c->type() == TQCheckListItem::CheckBox && list.contains(it_c->id())) { it_c->setOn(state); } selectSubItems(it_v, list, state); @@ -342,7 +342,7 @@ void KFindTransactionDlg::selectSubItems(TQListViewItem* item, const TQStringLis for(it_v = item->firstChild(); it_v != 0; it_v = it_v->nextSibling()) { KMyMoneyCheckListItem* it_c = static_cast<KMyMoneyCheckListItem*>(it_v); - if(list.tqcontains(it_c->id())) + if(list.contains(it_c->id())) it_c->setOn(state); selectSubItems(it_v, list, state); } @@ -568,7 +568,7 @@ void KFindTransactionDlg::setupFilter(void) MyMoneyAccount acc = MyMoneyFile::instance()->account(*it_a); if(acc.accountType() == MyMoneyAccount::Investment) { for(it_b = acc.accountList().begin(); it_b != acc.accountList().end(); ++it_b) { - if(!list.tqcontains(*it_b)) { + if(!list.contains(*it_b)) { missing.append(*it_b); } } diff --git a/kmymoney2/dialogs/kimportdlg.cpp b/kmymoney2/dialogs/kimportdlg.cpp index e8489d2..4a1b591 100644 --- a/kmymoney2/dialogs/kimportdlg.cpp +++ b/kmymoney2/dialogs/kimportdlg.cpp @@ -201,7 +201,7 @@ void KImportDlg::loadProfiles(const bool selectLast) } m_profileComboBox->setCurrentItem(0); - if(list.tqcontains(current) > 0) { + if(list.contains(current) > 0) { m_profileComboBox->setCurrentText(current); } } diff --git a/kmymoney2/dialogs/kmymoneysplittable.cpp b/kmymoney2/dialogs/kmymoneysplittable.cpp index d1182ec..61b8d4e 100644 --- a/kmymoney2/dialogs/kmymoneysplittable.cpp +++ b/kmymoney2/dialogs/kmymoneysplittable.cpp @@ -136,7 +136,7 @@ void kMyMoneySplitTable::paintCell(TQPainter *p, int row, int col, const TQRect& TQString qstringCategory; TQString qstringMemo; - int intPos = firsttext.tqfind("|"); + int intPos = firsttext.find("|"); if(intPos > -1) { qstringCategory = firsttext.left(intPos); @@ -199,7 +199,7 @@ void kMyMoneySplitTable::columnWidthChanged(int col) } /** Override the TQTable member function to avoid confusion with our own functionality */ -void kMyMoneySplitTable::endEdit(int /*row*/, int /*col*/, bool /*accept*/, bool /*tqreplace*/ ) +void kMyMoneySplitTable::endEdit(int /*row*/, int /*col*/, bool /*accept*/, bool /*replace*/ ) { } @@ -735,7 +735,7 @@ void kMyMoneySplitTable::endEdit(bool keyBoardDriven) fromValue = s1.value().abs(); // if we had a price info in the beginning, we use it here - if(m_priceInfo.tqfind(cat.currencyId()) != m_priceInfo.end()) { + if(m_priceInfo.find(cat.currencyId()) != m_priceInfo.end()) { toValue = (fromValue * m_priceInfo[cat.currencyId()]).convert(fract); } @@ -969,7 +969,7 @@ bool kMyMoneySplitTable::focusNextPrevChild(bool next) TQWidget *w = 0; TQWidget *currentWidget; - m_tabOrderWidgets.tqfind(tqApp->tqfocusWidget()); + m_tabOrderWidgets.find(tqApp->tqfocusWidget()); currentWidget = m_tabOrderWidgets.current(); w = next ? m_tabOrderWidgets.next() : m_tabOrderWidgets.prev(); diff --git a/kmymoney2/dialogs/kmymoneysplittable.h b/kmymoney2/dialogs/kmymoneysplittable.h index 477084f..2fda964 100644 --- a/kmymoney2/dialogs/kmymoneysplittable.h +++ b/kmymoney2/dialogs/kmymoneysplittable.h @@ -93,7 +93,7 @@ protected: void contentsMouseReleaseEvent( TQMouseEvent* e ); void contentsMouseDoubleClickEvent( TQMouseEvent* e ); bool eventFilter(TQObject *o, TQEvent *e); - void endEdit(int row, int col, bool accept, bool tqreplace ); + void endEdit(int row, int col, bool accept, bool replace ); void resizeEvent(TQResizeEvent*); TQWidget* createEditWidgets(void); diff --git a/kmymoney2/dialogs/kreconciledlg.cpp b/kmymoney2/dialogs/kreconciledlg.cpp index f7911b2..11a2a00 100644 --- a/kmymoney2/dialogs/kreconciledlg.cpp +++ b/kmymoney2/dialogs/kreconciledlg.cpp @@ -354,14 +354,14 @@ void KReconcileDlg::reloadLists() if (transaction->state()!=MyMoneyTransaction::Reconciled) { if (transaction->type() == MyMoneyTransaction::Debit) { transaction->setIndex(i); - if(m_debitsTQList.tqfind(transaction) < 0) + if(m_debitsTQList.find(transaction) < 0) { m_debitsTQList.append(transaction); } } else { transaction->setIndex(i); - if(m_creditsTQList.tqfind(transaction) < 0) + if(m_creditsTQList.find(transaction) < 0) { m_creditsTQList.append(transaction); } diff --git a/kmymoney2/dialogs/kselectdatabasedlg.cpp b/kmymoney2/dialogs/kselectdatabasedlg.cpp index 47d092d..cf29d4e 100644 --- a/kmymoney2/dialogs/kselectdatabasedlg.cpp +++ b/kmymoney2/dialogs/kselectdatabasedlg.cpp @@ -62,7 +62,7 @@ KSelectDatabaseDlg::KSelectDatabaseDlg(TQWidget *tqparent, const char *name) TQStringList::Iterator it = list.begin(); while(it != list.end()) { TQString dname = *it; - if (map.keys().tqcontains(dname)) { // only display if driver is supported + if (map.keys().contains(dname)) { // only display if driver is supported dname = dname + " - " + map[dname]; listDrivers->insertItem (dname); } @@ -106,11 +106,11 @@ KSelectDatabaseDlg::KSelectDatabaseDlg(KURL openURL, TQWidget *tqparent, const c TQStringList list = TQSqlDatabase::drivers(); // list drivers supported by KMM TQMap<TQString, TQString> map = m_map.driverMap(); - if (!list.tqcontains(driverName)) { + if (!list.contains(driverName)) { KMessageBox::error (0, i18n("TQt SQL driver %1 is no longer installed on your system").tqarg(driverName), ""); setError(); - } else if (!map.tqcontains(driverName)) { + } else if (!map.contains(driverName)) { KMessageBox::error (0, i18n("TQt SQL driver %1 is not suported").tqarg(driverName), ""); setError(); diff --git a/kmymoney2/dialogs/kstartdlg.cpp b/kmymoney2/dialogs/kstartdlg.cpp index afdef28..f1c413f 100644 --- a/kmymoney2/dialogs/kstartdlg.cpp +++ b/kmymoney2/dialogs/kstartdlg.cpp @@ -141,7 +141,7 @@ void KStartDlg::readConfig() value = config->readEntry( TQString( "File%1" ).tqarg( i ), TQString() ); if( !value.isNull() && fileExists(value) ) { - TQString file_name = value.mid(value.tqfindRev('/')+1); + TQString file_name = value.mid(value.findRev('/')+1); (void)new KRecentFileItem( value, view_recent, file_name, il->loadIcon("kmy", KIcon::Desktop, KIcon::SizeLarge)); } i++; diff --git a/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp b/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp index cdb7a34..e24b76f 100644 --- a/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp +++ b/kmymoney2/dialogs/mymoneyqifprofileeditor.cpp @@ -64,11 +64,11 @@ TQValidator::State MyMoneyQifProfileNameValidator::validate(TQString& name, int& TQStringList list = config->readListEntry("profiles"); // invalid character? - if(name.tqcontains(",") != 0) + if(name.contains(",") != 0) return TQValidator::Invalid; // would not work in this form (empty or existing name) - if(name.isEmpty() || list.tqcontains(name)) + if(name.isEmpty() || list.contains(name)) return TQValidator::Intermediate; // is OK @@ -264,13 +264,13 @@ void MyMoneyQifProfileEditor::slotLoadProfileFromConfig(const TQString& profile) m_isDirty = true; } - if(m_profileListBox->tqfindItem(profileName, TQt::ExactMatch | TQt::CaseSensitive) == NULL) { + if(m_profileListBox->findItem(profileName, TQt::ExactMatch | TQt::CaseSensitive) == NULL) { profileName = m_profileListBox->text(0); } m_profile.loadProfile("Profile-" + profileName); - TQListBoxItem *lbi = m_profileListBox->tqfindItem(profileName, TQt::ExactMatch | TQt::CaseSensitive); + TQListBoxItem *lbi = m_profileListBox->findItem(profileName, TQt::ExactMatch | TQt::CaseSensitive); int idx = m_profileListBox->index(lbi); showProfile(); if(idx >= 0) { diff --git a/kmymoney2/dialogs/settings/ksettingsgpg.cpp b/kmymoney2/dialogs/settings/ksettingsgpg.cpp index f34c2d8..b6cca2e 100644 --- a/kmymoney2/dialogs/settings/ksettingsgpg.cpp +++ b/kmymoney2/dialogs/settings/ksettingsgpg.cpp @@ -151,11 +151,11 @@ void KSettingsGpg::show(void) if(fields[0] != RECOVER_KEY_ID_FULL) { // replace parenthesis in name field with brackets TQString name = fields[1]; - name.tqreplace('(', "["); - name.tqreplace(')', "]"); + name.replace('(', "["); + name.replace(')', "]"); name = TQString("%1 (0x%2)").tqarg(name).tqarg(fields[0]); m_masterKeyCombo->insertItem(name); - if(name.tqcontains(masterKey)) + if(name.contains(masterKey)) m_masterKeyCombo->setCurrentItem(name); } } diff --git a/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp b/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp index a17fd6e..670e5ab 100644 --- a/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp +++ b/kmymoney2/dialogs/settings/ksettingsonlinequotes.cpp @@ -104,7 +104,7 @@ void KSettingsOnlineQuotes::loadList(const bool updateResetList) m_quoteSourceList->setSelected(first, true); slotLoadWidgets(first); - m_newButton->setEnabled(m_quoteSourceList->tqfindItem(i18n("New Quote Source"), 0) == 0); + m_newButton->setEnabled(m_quoteSourceList->findItem(i18n("New Quote Source"), 0) == 0); } void KSettingsOnlineQuotes::resetConfig(void) @@ -190,7 +190,7 @@ void KSettingsOnlineQuotes::slotNewEntry(void) WebPriceQuoteSource newSource(i18n("New Quote Source")); newSource.write(); loadList(); - TQListViewItem* item = m_quoteSourceList->tqfindItem(i18n("New Quote Source"), 0); + TQListViewItem* item = m_quoteSourceList->findItem(i18n("New Quote Source"), 0); if(item) { m_quoteSourceList->setSelected(item, true); slotLoadWidgets(item); @@ -213,7 +213,7 @@ void KSettingsOnlineQuotes::slotEntryRenamed(TQListViewItem* item, const TQStrin } else { item->setText(0, m_currentItem.m_name); } - m_newButton->setEnabled(m_quoteSourceList->tqfindItem(i18n("New Quote Source"), 0) == 0); + m_newButton->setEnabled(m_quoteSourceList->findItem(i18n("New Quote Source"), 0) == 0); } #include "ksettingsonlinequotes.moc" diff --git a/kmymoney2/dialogs/transactioneditor.cpp b/kmymoney2/dialogs/transactioneditor.cpp index bd73eac..ec01613 100644 --- a/kmymoney2/dialogs/transactioneditor.cpp +++ b/kmymoney2/dialogs/transactioneditor.cpp @@ -160,7 +160,7 @@ bool TransactionEditor::eventFilter(TQObject* o, TQEvent* e) // the object is one of our edit widgets, then .... if(o->isWidgetType() && (e->type() == TQEvent::KeyPress) - && m_editWidgets.values().tqcontains(dynamic_cast<TQWidget*>(o))) { + && m_editWidgets.values().contains(dynamic_cast<TQWidget*>(o))) { TQKeyEvent* k = dynamic_cast<TQKeyEvent*>(e); if((k->state() & TQt::KeyButtonMask) == 0) { bool isFinal = false; @@ -1241,7 +1241,7 @@ void StdTransactionEditor::autoFill(const TQString& payeeId) TQMap<TQString, struct uniqTransaction>::iterator it_u; do { TQString ukey = TQString("%1-%2").tqarg(key).tqarg(cnt); - it_u = uniqList.tqfind(ukey); + it_u = uniqList.find(ukey); if(it_u == uniqList.end()) { uniqList[ukey].t = &((*it_t).first); uniqList[ukey].cnt = 1; @@ -2109,7 +2109,7 @@ bool StdTransactionEditor::createTransaction(MyMoneyTransaction& t, const MyMone return false; } else { MyMoneyAccount cat = MyMoneyFile::instance()->account(s1.accountId()); - if(m_priceInfo.tqfind(cat.currencyId()) != m_priceInfo.end()) { + if(m_priceInfo.find(cat.currencyId()) != m_priceInfo.end()) { shares = (s1.value() * m_priceInfo[cat.currencyId()]).reduce().convert(cat.fraction()); } else |