summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views/kinvestmentlistitem.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:10:39 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:10:39 -0600
commit28723595822268551d3e050c3a83bf6ca5e17dd5 (patch)
treec84224b55e09375ad246f24649df1ffc89c04d1d /kmymoney2/views/kinvestmentlistitem.cpp
parent1f9d00360b9018301630ce062d7dda0c6583edfb (diff)
downloadkmymoney-28723595822268551d3e050c3a83bf6ca5e17dd5.tar.gz
kmymoney-28723595822268551d3e050c3a83bf6ca5e17dd5.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'kmymoney2/views/kinvestmentlistitem.cpp')
-rw-r--r--kmymoney2/views/kinvestmentlistitem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kmymoney2/views/kinvestmentlistitem.cpp b/kmymoney2/views/kinvestmentlistitem.cpp
index b7617d8..f0f1fd3 100644
--- a/kmymoney2/views/kinvestmentlistitem.cpp
+++ b/kmymoney2/views/kinvestmentlistitem.cpp
@@ -130,7 +130,7 @@ const TQString KInvestmentListItem::calculateGain(const equity_price_history& hi
else
{
bool bFoundCurrent = false, bFoundComparison = false;
- TQDate tempDate, comparisonDate = TQDate::tqcurrentDate();
+ TQDate tempDate, comparisonDate = TQDate::currentDate();
if(YTD)
{
@@ -147,7 +147,7 @@ const TQString KInvestmentListItem::calculateGain(const equity_price_history& hi
//find the current value, or closest to the current value.
equity_price_history::ConstIterator itToday = history.end();
- for(tempDate = TQDate::tqcurrentDate(); tempDate >= comparisonDate; )
+ for(tempDate = TQDate::currentDate(); tempDate >= comparisonDate; )
{
itToday = history.find(tempDate);
if(itToday != history.end())
@@ -169,7 +169,7 @@ const TQString KInvestmentListItem::calculateGain(const equity_price_history& hi
//should already be sorted earliest to latest.
for(equity_price_history::ConstIterator it = history.begin(); it != history.end(); ++it)
{
- if(it.key() >= comparisonDate && it.key() < TQDate::tqcurrentDate())
+ if(it.key() >= comparisonDate && it.key() < TQDate::currentDate())
{
comparisonDate = it.key();
comparisonValue = it.data();