diff options
Diffstat (limited to 'kspread/dialogs/kspread_dlg_formula.cc')
-rw-r--r-- | kspread/dialogs/kspread_dlg_formula.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kspread/dialogs/kspread_dlg_formula.cc b/kspread/dialogs/kspread_dlg_formula.cc index 0981a4e7..d8d7e9d7 100644 --- a/kspread/dialogs/kspread_dlg_formula.cc +++ b/kspread/dialogs/kspread_dlg_formula.cc @@ -224,8 +224,8 @@ FormulaDialog::FormulaDialog( View* tqparent, const char* name,const TQString& f // Was a function name passed along with the constructor ? Then activate it. if( !formulaName.isEmpty() ) { - functions->setCurrentItem( functions->index( functions->tqfindItem( formulaName ) ) ); - slotDoubleClicked( functions->tqfindItem( formulaName ) ); + functions->setCurrentItem( functions->index( functions->findItem( formulaName ) ) ); + slotDoubleClicked( functions->findItem( formulaName ) ); } else { @@ -266,7 +266,7 @@ void FormulaDialog::slotSearchText(const TQString &_text) { TQString result = listFunct.makeCompletion( _text.upper() ); if( !result.isNull() ) - functions->setCurrentItem( functions->index( functions->tqfindItem( result ) ) ); + functions->setCurrentItem( functions->index( functions->findItem( result ) ) ); } bool FormulaDialog::eventFilter( TQObject* obj, TQEvent* ev ) @@ -364,7 +364,7 @@ void FormulaDialog::slotSelectButton() { if( functions->currentItem() != -1 ) { - slotDoubleClicked(functions->tqfindItem(functions->text(functions->currentItem()))); + slotDoubleClicked(functions->findItem(functions->text(functions->currentItem()))); } } @@ -473,10 +473,10 @@ TQString FormulaDialog::createParameter( const TQString& _text, int param ) TQString tmp = _text; int pos; int start = 1; - while( ( pos = tmp.tqfind( '"', start ) ) != -1 ) + while( ( pos = tmp.find( '"', start ) ) != -1 ) { if (tmp[pos - 1] != '\\') - tmp.tqreplace( pos, 1, "\\\"" ); + tmp.replace( pos, 1, "\\\"" ); else start = pos + 1; } @@ -497,10 +497,10 @@ TQString FormulaDialog::createParameter( const TQString& _text, int param ) TQString tmp = _text; int pos; int start = 1; - while( ( pos = tmp.tqfind( '"', start ) ) != -1 ) + while( ( pos = tmp.find( '"', start ) ) != -1 ) { if (tmp[pos - 1] != '\\') - tmp.tqreplace( pos, 1, "\\\"" ); + tmp.replace( pos, 1, "\\\"" ); else start = pos + 1; } @@ -712,7 +712,7 @@ void FormulaDialog::slotShowFunction( const TQString& function ) slotActivated( category ); // select the function - TQListBoxItem* item = functions->tqfindItem( function, + TQListBoxItem* item = functions->findItem( function, TQt::ExactMatch | TQt::CaseSensitive ); if( item ) functions->setCurrentItem( item ); |