diff options
Diffstat (limited to 'kword/KWEditPersonnalExpression.cpp')
-rw-r--r-- | kword/KWEditPersonnalExpression.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kword/KWEditPersonnalExpression.cpp b/kword/KWEditPersonnalExpression.cpp index 59b79f97..3af07a3e 100644 --- a/kword/KWEditPersonnalExpression.cpp +++ b/kword/KWEditPersonnalExpression.cpp @@ -129,7 +129,7 @@ void KWEditPersonnalExpression::slotGroupSelected() m_groupLineEdit->blockSignals(true); m_delExpression->setEnabled(m_groupList->currentItem()!=-1); m_groupLineEdit->setText(m_groupList->currentText()); - list::Iterator it= listExpression.tqfind(m_groupList->currentText()); + list::Iterator it= listExpression.find(m_groupList->currentText()); TQStringList lst(it.data()); m_ExpressionsList->blockSignals(true); m_ExpressionsList->clear(); @@ -147,7 +147,7 @@ void KWEditPersonnalExpression::slotUpdateGroupName(const TQString &newGroupName return; m_addGroup->setEnabled( true ); - list::Iterator it= listExpression.tqfind(m_groupList->currentText()); + list::Iterator it= listExpression.find(m_groupList->currentText()); TQStringList lst(it.data()); listExpression.insert(newGroupName,lst); listExpression.remove(m_groupList->currentText()); @@ -162,12 +162,12 @@ void KWEditPersonnalExpression::slotUpdateExpression(const TQString &newExpressi if(newExpression.isEmpty() || m_groupList->currentItem()==-1 || m_ExpressionsList->currentText().isEmpty()) return; - list::Iterator it= listExpression.tqfind(m_groupList->currentText()); + list::Iterator it= listExpression.find(m_groupList->currentText()); TQStringList lst = it.data(); - TQStringList::Iterator it2=lst.tqfind(m_ExpressionsList->currentText()); + TQStringList::Iterator it2=lst.find(m_ExpressionsList->currentText()); lst.insert(it2,TQString(newExpression)); lst.remove(it2); - listExpression.tqreplace(m_groupList->currentText(),lst); + listExpression.replace(m_groupList->currentText(),lst); lst.remove(m_ExpressionsList->currentText()); m_ExpressionsList->blockSignals(true); @@ -246,13 +246,13 @@ void KWEditPersonnalExpression::slotOk() } void KWEditPersonnalExpression::slotAddExpression() { - list::Iterator it= listExpression.tqfind(m_groupList->currentText()); + list::Iterator it= listExpression.find(m_groupList->currentText()); TQStringList lst(it.data()); TQString newWord = i18n("empty"); - if ( lst.tqcontains( newWord )) + if ( lst.contains( newWord )) return; lst<< newWord; - listExpression.tqreplace(m_groupList->currentText(),lst); + listExpression.replace(m_groupList->currentText(),lst); m_ExpressionsList->blockSignals(true); m_ExpressionsList->insertItem(newWord); @@ -272,10 +272,10 @@ void KWEditPersonnalExpression::slotRemoveExpression() { TQString text=m_ExpressionsList->currentText (); if(!text.isEmpty()) { - list::Iterator it= listExpression.tqfind(m_groupList->currentText()); + list::Iterator it= listExpression.find(m_groupList->currentText()); TQStringList lst(it.data()); lst.remove(text); - listExpression.tqreplace(m_groupList->currentText(),lst); + listExpression.replace(m_groupList->currentText(),lst); m_ExpressionsList->blockSignals(true); m_ExpressionsList->clear(); |