From 7e51b6d5ddc01fc3bc69f30bc5d3933a7709dbf2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- kmymoney2/widgets/kmymoneycalculator.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kmymoney2/widgets/kmymoneycalculator.cpp') 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("" + txt + ""); } @@ -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"; -- cgit v1.2.1