diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2 (patch) | |
tree | 6a288b084438ed144c0fbd4a34a9a22caf4d6b04 /kmymoney2/converter/webpricequote.cpp | |
parent | 154e6e6105157c321cbd578d238c525da419f868 (diff) | |
download | kmymoney-7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2.tar.gz kmymoney-7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/converter/webpricequote.cpp')
-rw-r--r-- | kmymoney2/converter/webpricequote.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/converter/webpricequote.cpp b/kmymoney2/converter/webpricequote.cpp index 325560b..d1fd158 100644 --- a/kmymoney2/converter/webpricequote.cpp +++ b/kmymoney2/converter/webpricequote.cpp @@ -66,7 +66,7 @@ WebPriceQuote::~WebPriceQuote() bool WebPriceQuote::launch( const TQString& _symbol, const TQString& _id, const TQString& _sourcename ) { - if (_sourcename.tqcontains("Finance::Quote")) + if (_sourcename.contains("Finance::Quote")) return (launchFinanceQuote (_symbol, _id, _sourcename)); else return (launchNative (_symbol, _id, _sourcename)); @@ -87,7 +87,7 @@ bool WebPriceQuote::launchNative( const TQString& _symbol, const TQString& _id, if ( sourcename.isEmpty() ) sourcename = "Yahoo"; - if ( quoteSources().tqcontains(sourcename) ) + if ( quoteSources().contains(sourcename) ) m_source = WebPriceQuoteSource(sourcename); else emit error(TQString("Source <%1> does not exist.").tqarg(sourcename)); @@ -105,7 +105,7 @@ bool WebPriceQuote::launchNative( const TQString& _symbol, const TQString& _id, KURL url; // if the source has room for TWO symbols.. - if ( m_source.m_url.tqcontains("%2") ) + if ( m_source.m_url.contains("%2") ) { // this is a two-symbol quote. split the symbol into two. valid symbol // characters are: 0-9, A-Z and the dot. anything else is a separator @@ -115,7 +115,7 @@ bool WebPriceQuote::launchNative( const TQString& _symbol, const TQString& _id, if ( splitrx.search(m_symbol) != -1 ) url = KURL::fromPathOrURL(m_source.m_url.tqarg(splitrx.cap(1),splitrx.cap(2))); else - kdDebug(2) << "WebPriceQuote::launch() did not tqfind 2 symbols" << endl; + kdDebug(2) << "WebPriceQuote::launch() did not find 2 symbols" << endl; } else // a regular one-symbol quote @@ -316,7 +316,7 @@ void WebPriceQuote::slotParseQuote(const TQString& _quotedata) quotedata.remove(TQRegExp("<[^>]*>")); // &...;'s - quotedata.tqreplace(TQRegExp("&\\w+;")," "); + quotedata.replace(TQRegExp("&\\w+;")," "); // Extra white space quotedata = quotedata.simplifyWhiteSpace(); @@ -352,16 +352,16 @@ void WebPriceQuote::slotParseQuote(const TQString& _quotedata) // set the last one to a period. TQString pricestr = priceRegExp.cap(1); - int pos = pricestr.tqfindRev(TQRegExp("\\D")); + int pos = pricestr.findRev(TQRegExp("\\D")); if ( pos > 0 ) { pricestr[pos] = '.'; - pos = pricestr.tqfindRev(TQRegExp("\\D"),pos-1); + pos = pricestr.findRev(TQRegExp("\\D"),pos-1); } while ( pos > 0 ) { pricestr.remove(pos,1); - pos = pricestr.tqfindRev(TQRegExp("\\D"),pos); + pos = pricestr.findRev(TQRegExp("\\D"),pos); } m_price = pricestr.toDouble(); @@ -639,7 +639,7 @@ TQStringList WebPriceQuote::quoteSourcesNative() TQMap<TQString,WebPriceQuoteSource>::const_iterator it_source = defaults.begin(); while ( it_source != defaults.end() ) { - if ( ! groups.tqcontains( (*it_source).m_name ) ) + if ( ! groups.contains( (*it_source).m_name ) ) { groups += (*it_source).m_name; (*it_source).write(); |