summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/kequitypriceupdatedlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/dialogs/kequitypriceupdatedlg.cpp')
-rw-r--r--kmymoney2/dialogs/kequitypriceupdatedlg.cpp18
1 files changed, 9 insertions, 9 deletions
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()) {