summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-19 11:34:38 -0600
committerTimothy Pearson <[email protected]>2011-12-19 11:34:38 -0600
commitc9113d74fbb7e1e6b063915a0f6ac4a8a080b631 (patch)
tree467dcbf1c8ed26f2a2fb2a4cc2fdd6d13fc025bc /src/mainwindow.cpp
parentabb0359d58bc4cc3640f094fd386cf3461fc125a (diff)
downloadabakus-c9113d74fbb7e1e6b063915a0f6ac4a8a080b631.tar.gz
abakus-c9113d74fbb7e1e6b063915a0f6ac4a8a080b631.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 2313f7a..b05980f 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -222,7 +222,7 @@ void MainWindow::slotReturnPressed()
}
else {
m_insert = false;
- resultVal = i18n("Error: %1").tqarg(RPNParser::errorString());
+ resultVal = i18n("Error: %1").arg(RPNParser::errorString());
}
// Skip creating list view items if in compact mode.
@@ -454,8 +454,8 @@ void MainWindow::saveConfig()
continue;
list += TQString("%1=%2")
- .tqarg(*it)
- .tqarg(ValueManager::instance()->value(*it).toString());
+ .arg(*it)
+ .arg(ValueManager::instance()->value(*it).toString());
}
config.writeEntry("Saved Variables", list);
@@ -492,7 +492,7 @@ void MainWindow::saveConfig()
TQString var = manager->function(*it)->userFn->varName;
TQString expr = fn->operand()->infixString();
- saveList += TQString("set %1(%2) = %3").tqarg(*it).tqarg(var).tqarg(expr);
+ saveList += TQString("set %1(%2) = %3").arg(*it).arg(var).arg(expr);
}
config.writeEntry("FunctionList", saveList);
@@ -631,7 +631,7 @@ void MainWindow::slotNewFunction(const TQString &name)
{
UserFunction *userFn = FunctionManager::instance()->function(name)->userFn;
UnaryFunction *fn = dynamic_cast<UnaryFunction *>(userFn->fn);
- TQString fnName = TQString("%1(%2)").tqarg(name, userFn->varName);
+ TQString fnName = TQString("%1(%2)").arg(name, userFn->varName);
TQString expr = fn->operand()->infixString();
new KListViewItem(m_fnList, fnName, expr);
@@ -640,7 +640,7 @@ void MainWindow::slotNewFunction(const TQString &name)
void MainWindow::slotRemoveFunction(const TQString &name)
{
UserFunction *userFn = FunctionManager::instance()->function(name)->userFn;
- TQString fnName = TQString("%1(%2)").tqarg(name, userFn->varName);
+ TQString fnName = TQString("%1(%2)").arg(name, userFn->varName);
TQListViewItem *item = 0;
while((item = m_fnList->findItem(fnName, 0)) != 0)
@@ -714,7 +714,7 @@ TQString MainWindow::interpolateExpression(const TQString &text, ResultListViewT
unsigned numPos = stackStr.mid(1).toUInt();
if(!m_result->getStackValue(numPos, value)) {
- new ResultListViewText(m_result, text, i18n("Marker %1 isn't set").tqarg(stackStr), after, true);
+ new ResultListViewText(m_result, text, i18n("Marker %1 isn't set").arg(stackStr), after, true);
return TQString();
}