diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 551fb6d0d8c5d2ed90363a1017816d252b03d9bd (patch) | |
tree | 80f1396a23fdc417726dcf1d8b4b3aba82588068 /src/mainwindow.cpp | |
parent | 1b7882c63e0e5e7926595444122726270617279b (diff) | |
download | abakus-551fb6d0d8c5d2ed90363a1017816d252b03d9bd.tar.gz abakus-551fb6d0d8c5d2ed90363a1017816d252b03d9bd.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/abakus@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8ae3fc4..764c2aa 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -193,7 +193,7 @@ void MainWindow::slotReturnPressed() { TQString text = m_edit->text(); - text.tqreplace("\n", ""); + text.replace("\n", ""); m_edit->appendHistory(text); @@ -301,7 +301,7 @@ void MainWindow::slotTextChanged() if(inRPNMode()) return; - if(str.tqfind(TQRegExp("^[-+*/^]")) != -1) { + if(str.find(TQRegExp("^[-+*/^]")) != -1) { m_edit->setText("ans " + str + " "); m_edit->moveCursor(TQTextEdit::MoveEnd, false); } @@ -643,7 +643,7 @@ void MainWindow::slotRemoveFunction(const TQString &name) TQString fnName = TQString("%1(%2)").tqarg(name, userFn->varName); TQListViewItem *item = 0; - while((item = m_fnList->tqfindItem(fnName, 0)) != 0) + while((item = m_fnList->findItem(fnName, 0)) != 0) delete item; } @@ -654,7 +654,7 @@ void MainWindow::slotNewValue(const TQString &name, Abakus::number_t value) void MainWindow::slotChangeValue(const TQString &name, Abakus::number_t value) { - ValueListViewItem *item = static_cast<ValueListViewItem *>(m_varList->tqfindItem(name, 0)); + ValueListViewItem *item = static_cast<ValueListViewItem *>(m_varList->findItem(name, 0)); if(item) item->valueChanged(value); @@ -662,7 +662,7 @@ void MainWindow::slotChangeValue(const TQString &name, Abakus::number_t value) void MainWindow::slotRemoveValue(const TQString &name) { - delete m_varList->tqfindItem(name, 0); + delete m_varList->findItem(name, 0); } void MainWindow::slotToggleCompactMode() @@ -718,7 +718,7 @@ TQString MainWindow::interpolateExpression(const TQString &text, ResultListViewT return TQString(); } - str.tqreplace(pos, stackStr.length(), value.toString()); + str.replace(pos, stackStr.length(), value.toString()); } return str; |