From c9113d74fbb7e1e6b063915a0f6ac4a8a080b631 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:34:38 -0600 Subject: Remove additional unneeded tq method conversions --- src/mainwindow.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/mainwindow.cpp') 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(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(); } -- cgit v1.2.1