diff options
Diffstat (limited to 'kmplot/kmplot/kconstanteditor.cpp')
-rw-r--r-- | kmplot/kmplot/kconstanteditor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kmplot/kmplot/kconstanteditor.cpp b/kmplot/kmplot/kconstanteditor.cpp index 7fbc4101..59101073 100644 --- a/kmplot/kmplot/kconstanteditor.cpp +++ b/kmplot/kmplot/kconstanteditor.cpp @@ -89,7 +89,7 @@ void KConstantEditor::cmdDelete_clicked() for( TQValueVector<Ufkt>::iterator it = m_view->parser()->ufkt.begin(); it != m_view->parser()->ufkt.end(); ++it) { str = it->fstr; - for (int i=str.tqfind(')'); (uint)i<str.length();i++) + for (int i=str.find(')'); (uint)i<str.length();i++) if ( str.at(i) == constant ) { KMessageBox::error(this, i18n("A function uses this constant; therefore, it cannot be removed.")); @@ -113,7 +113,7 @@ void KConstantEditor::cmdDelete_clicked() } } - delete varlist->tqfindItem(TQChar(constant), 0); //removes the item from the constant list + delete varlist->findItem(TQChar(constant), 0); //removes the item from the constant list } void KConstantEditor::varlist_clicked( TQListViewItem * item ) @@ -191,7 +191,7 @@ void KConstantEditor::editConstantSlot() return; } - TQListViewItem *item = varlist->tqfindItem(TQChar(constant), 0); + TQListViewItem *item = varlist->findItem(TQChar(constant), 0); if (item!=0) item->setText(1,value); @@ -199,7 +199,7 @@ void KConstantEditor::editConstantSlot() int index = 0; for( TQValueVector<Ufkt>::iterator it = m_view->parser()->ufkt.begin(); it != m_view->parser()->ufkt.end(); ++it) { - if( it->fstr.tqcontains(constant)!=0 ) + if( it->fstr.contains(constant)!=0 ) m_view->parser()->reparse(index); //reparsing the function ++index; } |