diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:31:01 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:31:01 -0600 |
commit | 252fce5a2a5384702fbcc1c9987284d7bd2e6943 (patch) | |
tree | d5768ff1e9065f29bec60c94d31880b38b4e82f2 /kmymoney2/converter/convertertest.cpp | |
parent | 69ef6c4beaa37474a2170d0bfe842de647f53102 (diff) | |
download | kmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.tar.gz kmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kmymoney2/converter/convertertest.cpp')
-rw-r--r-- | kmymoney2/converter/convertertest.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kmymoney2/converter/convertertest.cpp b/kmymoney2/converter/convertertest.cpp index 739c6f3..bbe0ec4 100644 --- a/kmymoney2/converter/convertertest.cpp +++ b/kmymoney2/converter/convertertest.cpp @@ -112,8 +112,8 @@ void ConverterTest::testWebQuotes() CPPUNIT_ASSERT(qr.m_errors.count() == 0); // Quote date should be within the last week, or something bad is going on. - CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate()); - CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate()); + CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); // Quote value should at least be positive CPPUNIT_ASSERT(qr.m_price.isPositive()); @@ -123,8 +123,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); q.launch("EUR > USD","Yahoo Currency"); @@ -132,8 +132,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); q.launch("50492","Globe & Mail"); @@ -141,8 +141,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); q.launch("TDB647","MSN.CA"); @@ -150,8 +150,8 @@ void ConverterTest::testWebQuotes() // kdDebug(2) << "ConverterTest::testWebQuotes(): quote for " << q.m_symbol << " on " << qr.m_date.toString() << " is " << qr.m_price.toString() << " errors(" << qr.m_errors.count() << "): " << qr.m_errors.join(" /// ") << endl; CPPUNIT_ASSERT(qr.m_errors.count() == 0); - CPPUNIT_ASSERT(qr.m_date <= TQDate::tqcurrentDate().addDays(1)); - CPPUNIT_ASSERT(qr.m_date >= TQDate::tqcurrentDate().addDays(-7)); + CPPUNIT_ASSERT(qr.m_date <= TQDate::currentDate().addDays(1)); + CPPUNIT_ASSERT(qr.m_date >= TQDate::currentDate().addDays(-7)); CPPUNIT_ASSERT(qr.m_price.isPositive()); } |