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 | b6edfe41c9395f2e20784cbf0e630af6426950a3 (patch) | |
tree | 56ed9b871d4296e6c15949c24e16420be1b28697 /kspread/valueformatter.cc | |
parent | ef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff) | |
download | koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kspread/valueformatter.cc')
-rw-r--r-- | kspread/valueformatter.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kspread/valueformatter.cc b/kspread/valueformatter.cc index 1bef11e2..9e3c57da 100644 --- a/kspread/valueformatter.cc +++ b/kspread/valueformatter.cc @@ -201,18 +201,18 @@ FormatType ValueFormatter::determineFormatting (const Value &value, void ValueFormatter::removeTrailingZeros (TQString &str, TQChar decimal_point) { - if (str.tqfind (decimal_point) < 0) + if (str.find (decimal_point) < 0) //no decimal point -> nothing to do return; int start = 0; int cslen = converter->locale()->currencySymbol().length(); - if (str.tqfind ('%') != -1) + if (str.find ('%') != -1) start = 2; - else if (str.tqfind (converter->locale()->currencySymbol()) == + else if (str.find (converter->locale()->currencySymbol()) == ((int) (str.length() - cslen))) start = cslen + 1; - else if ((start = str.tqfind ('E')) != -1) + else if ((start = str.find ('E')) != -1) start = str.length() - start; else start = 0; @@ -277,8 +277,8 @@ TQString ValueFormatter::createNumberFormat ( double value, int precision, case Scientific_format: decimal_point = converter->locale()->decimalSymbol()[0]; localizedNumber = TQString::number (value, 'E', p); - if ((pos = localizedNumber.tqfind ('.')) != -1) - localizedNumber = localizedNumber.tqreplace (pos, 1, decimal_point); + if ((pos = localizedNumber.find ('.')) != -1) + localizedNumber = localizedNumber.replace (pos, 1, decimal_point); break; default : //other formatting? |