summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneycalculator.cpp
diff options
context:
space:
mode:
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";