diff options
Diffstat (limited to 'kmplot/kmplot/kconstanteditor.cpp')
-rw-r--r-- | kmplot/kmplot/kconstanteditor.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kmplot/kmplot/kconstanteditor.cpp b/kmplot/kmplot/kconstanteditor.cpp index c2017c8a..7fbc4101 100644 --- a/kmplot/kmplot/kconstanteditor.cpp +++ b/kmplot/kmplot/kconstanteditor.cpp @@ -40,8 +40,8 @@ #include "kconstanteditor.h" -KConstantEditor::KConstantEditor(View *v, TQWidget *parent, const char *name) - : QConstantEditor(parent,name), m_view(v) +KConstantEditor::KConstantEditor(View *v, TQWidget *tqparent, const char *name) + : QConstantEditor(tqparent,name), m_view(v) { TQString str_value; TQValueVector<Constant>::iterator it; @@ -69,7 +69,7 @@ void KConstantEditor::cmdEdit_clicked() { if ( !varlist->currentItem() ) return; - constant = varlist->currentItem()->text(0).at(0).latin1(); + constant = varlist->currentItem()->text(0).tqat(0).latin1(); value = varlist->currentItem()->text(1); KEditConstant *dlg = new KEditConstant(m_view->parser(), constant, value); @@ -82,14 +82,14 @@ void KConstantEditor::cmdDelete_clicked() if ( !varlist->currentItem() ) return; - constant = varlist->currentItem()->text(0).at(0).latin1(); + constant = varlist->currentItem()->text(0).tqat(0).latin1(); value = varlist->currentItem()->text(1); TQString str; for( TQValueVector<Ufkt>::iterator it = m_view->parser()->ufkt.begin(); it != m_view->parser()->ufkt.end(); ++it) { str = it->fstr; - for (int i=str.find(')'); (uint)i<str.length();i++) + for (int i=str.tqfind(')'); (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->findItem(TQChar(constant), 0); //removes the item from the constant list + delete varlist->tqfindItem(TQChar(constant), 0); //removes the item from the constant list } void KConstantEditor::varlist_clicked( TQListViewItem * item ) @@ -136,7 +136,7 @@ void KConstantEditor::cmdDuplicate_clicked() { if (!varlist->currentItem()) return; - constant = varlist->currentItem()->text(0).at(0).latin1(); + constant = varlist->currentItem()->text(0).tqat(0).latin1(); value = varlist->currentItem()->text(1); TQStringList list; @@ -158,7 +158,7 @@ void KConstantEditor::cmdDuplicate_clicked() TQStringList result = KInputDialog::getItemList(i18n("Choose Name"),i18n("Choose a name for the constant:"),list, TQStringList(), false, &found); if (found) { - constant = (*result.begin()).at(0).latin1(); + constant = (*result.begin()).tqat(0).latin1(); emit newConstantSlot(); } @@ -191,7 +191,7 @@ void KConstantEditor::editConstantSlot() return; } - TQListViewItem *item = varlist->findItem(TQChar(constant), 0); + TQListViewItem *item = varlist->tqfindItem(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.contains(constant)!=0 ) + if( it->fstr.tqcontains(constant)!=0 ) m_view->parser()->reparse(index); //reparsing the function ++index; } |