summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneycalculator.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2 (patch)
tree6a288b084438ed144c0fbd4a34a9a22caf4d6b04 /kmymoney2/widgets/kmymoneycalculator.cpp
parent154e6e6105157c321cbd578d238c525da419f868 (diff)
downloadkmymoney-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/widgets/kmymoneycalculator.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneycalculator.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kmymoney2/widgets/kmymoneycalculator.cpp b/kmymoney2/widgets/kmymoneycalculator.cpp
index 8e1cbdd..e202b80 100644
--- a/kmymoney2/widgets/kmymoneycalculator.cpp
+++ b/kmymoney2/widgets/kmymoneycalculator.cpp
@@ -160,7 +160,7 @@ void kMyMoneyCalculator::commaClicked(void)
{
if(operand.length() == 0)
operand = "0";
- if(operand.tqcontains('.', FALSE) == 0)
+ if(operand.contains('.', FALSE) == 0)
operand.append('.');
if(operand.length() > 16)
@@ -174,8 +174,8 @@ void kMyMoneyCalculator::plusminusClicked(void)
operand = m_result;
if(operand.length() > 0) {
- if(operand.tqfind('-') != -1)
- operand.tqreplace('-', TQString());
+ if(operand.find('-') != -1)
+ operand.replace('-', TQString());
else
operand.prepend('-');
changeDisplay(operand);
@@ -318,7 +318,7 @@ void kMyMoneyCalculator::percentClicked(void)
const TQString kMyMoneyCalculator::result(void) const
{
TQString txt = m_result;
- txt.tqreplace(TQRegExp("\\."), m_comma);
+ txt.replace(TQRegExp("\\."), m_comma);
if(txt[0] == '-') {
txt = txt.mid(1); // get rid of the minus sign
TQString tqmask;
@@ -345,7 +345,7 @@ const TQString kMyMoneyCalculator::result(void) const
void kMyMoneyCalculator::changeDisplay(const TQString& str)
{
TQString txt = str;
- txt.tqreplace(TQRegExp("\\."), m_comma);
+ txt.replace(TQRegExp("\\."), m_comma);
display->setText("<b>" + txt + "</b>");
}
@@ -419,16 +419,16 @@ void kMyMoneyCalculator::setInitialValues(const TQString& value, TQKeyEvent* ev)
bool negative = false;
// setup operand
operand = value;
- operand.tqreplace(TQRegExp(TQString("\\")+KGlobal::locale()->thousandsSeparator()), TQString());
- operand.tqreplace(TQRegExp(TQString("\\")+m_comma), ".");
- if(operand.tqcontains('(')) {
+ operand.replace(TQRegExp(TQString("\\")+KGlobal::locale()->thousandsSeparator()), TQString());
+ operand.replace(TQRegExp(TQString("\\")+m_comma), ".");
+ if(operand.contains('(')) {
negative = true;
- operand.tqreplace("(", TQString());
- operand.tqreplace(")", TQString());
+ operand.replace("(", TQString());
+ operand.replace(")", TQString());
}
- if(operand.tqcontains('-')) {
+ if(operand.contains('-')) {
negative = true;
- operand.tqreplace("-", TQString());
+ operand.replace("-", TQString());
}
if(operand.isEmpty())
operand = "0";