diff options
Diffstat (limited to 'katapult/plugins/catalogs/calculatorcatalog/actionevalexpr.cpp')
-rw-r--r-- | katapult/plugins/catalogs/calculatorcatalog/actionevalexpr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/katapult/plugins/catalogs/calculatorcatalog/actionevalexpr.cpp b/katapult/plugins/catalogs/calculatorcatalog/actionevalexpr.cpp index ff47f92..fdbbc60 100644 --- a/katapult/plugins/catalogs/calculatorcatalog/actionevalexpr.cpp +++ b/katapult/plugins/catalogs/calculatorcatalog/actionevalexpr.cpp @@ -72,7 +72,7 @@ static TQString formatNumber(const TQString &numStr) if (expString.length()==1) expString=TQString(); // Replace dot with locale decimal separator - mantString.tqreplace(TQChar('.'), KGlobal::locale()->decimalSymbol()); + mantString.replace(TQChar('.'), KGlobal::locale()->decimalSymbol()); // Insert the thousand separators _insertSeparator(mantString, KGlobal::locale()->thousandsSeparator(), KGlobal::locale()->decimalSymbol()); @@ -152,8 +152,8 @@ void ActionEvaluateExpression::execute(const KatapultItem* item) const if (!_expr->parseError()) { TQClipboard *cb = TQApplication::tqclipboard(); TQString s = _expr->catalog()->formatString(); - s.tqreplace("%1", _expr->text()); - s.tqreplace("%2", text()); + s.replace("%1", _expr->text()); + s.replace("%2", text()); cb->setText(s, TQClipboard::Clipboard); cb->setText(s, TQClipboard::Selection); } |