diff options
Diffstat (limited to 'kspread/dialogs/kspread_dlg_database.cc')
-rw-r--r-- | kspread/dialogs/kspread_dlg_database.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kspread/dialogs/kspread_dlg_database.cc b/kspread/dialogs/kspread_dlg_database.cc index 1bca7c85..7aa5dfa9 100644 --- a/kspread/dialogs/kspread_dlg_database.cc +++ b/kspread/dialogs/kspread_dlg_database.cc @@ -944,18 +944,18 @@ TQString DatabaseDialog::getWhereCondition(TQString const & column, TQString DatabaseDialog::exchangeWildcards(TQString const & value) { TQString str(value); - int p = str.tqfind('*'); + int p = str.find('*'); while ( p > -1 ) { - str = str.tqreplace( p, 1, "%" ); - p = str.tqfind('*'); + str = str.replace( p, 1, "%" ); + p = str.find('*'); } - p = str.tqfind('?'); + p = str.find('?'); while ( p > -1 ) { - str = str.tqreplace( p, 1, "_" ); - p = str.tqfind('?'); + str = str.replace( p, 1, "_" ); + p = str.find('?'); } return str; } @@ -964,8 +964,8 @@ bool DatabaseDialog::optionsDoNext() { if ( m_operator_1->currentItem() == 4 ) { - if ( ( m_operatorValue_1->text().tqfind('*') != -1 ) - || ( m_operatorValue_1->text().tqfind('?') != -1 ) ) + if ( ( m_operatorValue_1->text().find('*') != -1 ) + || ( m_operatorValue_1->text().find('?') != -1 ) ) { // xgettext: no-c-format int res = KMessageBox::warningYesNo( this, i18n("'*' or '?' are not valid wildcards in SQL. " @@ -978,8 +978,8 @@ bool DatabaseDialog::optionsDoNext() if ( m_operator_2->currentItem() == 4 ) { - if ( ( m_operatorValue_2->text().tqfind('*') != -1 ) - || ( m_operatorValue_2->text().tqfind('?') != -1 ) ) + if ( ( m_operatorValue_2->text().find('*') != -1 ) + || ( m_operatorValue_2->text().find('?') != -1 ) ) { // xgettext: no-c-format int res = KMessageBox::warningYesNo( this, i18n("'*' or '?' are not valid wildcards in SQL. " @@ -992,8 +992,8 @@ bool DatabaseDialog::optionsDoNext() if ( m_operator_3->currentItem() == 4 ) { - if ( ( m_operatorValue_3->text().tqfind('*') != -1 ) - || ( m_operatorValue_3->text().tqfind('?') != -1 ) ) + if ( ( m_operatorValue_3->text().find('*') != -1 ) + || ( m_operatorValue_3->text().find('?') != -1 ) ) { // xgettext: no-c-format int res = KMessageBox::warningYesNo( this, i18n("'*' or '?' are not valid wildcards in SQL. " |