author | cniehaus <cniehaus> | 2003-01-11 18:28:09 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2003-01-11 18:28:09 (UTC) |
commit | e3fa5685865712ca930d9124b974506766e7b11e (patch) (side-by-side diff) | |
tree | 377298838435ca45a23945660f687583788d4a97 /noncore | |
parent | fecbb2ca2714c1699a76036865e6e1120110ac1d (diff) | |
download | opie-e3fa5685865712ca930d9124b974506766e7b11e.zip opie-e3fa5685865712ca930d9124b974506766e7b11e.tar.gz opie-e3fa5685865712ca930d9124b974506766e7b11e.tar.bz2 |
check if the user want to serach casesensitive or not
-rw-r--r-- | noncore/apps/odict/dingwidget.cpp | 5 | ||||
-rw-r--r-- | noncore/apps/odict/odict.cpp | 12 |
2 files changed, 7 insertions, 10 deletions
diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index 7abad22..5b5d731 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp @@ -116,3 +116,3 @@ BroswerContent DingWidget::parseInfo() { - QStringList search = lines.grep( queryword ); + QStringList search = lines.grep( queryword , isCaseSensitive ); @@ -128,2 +128,3 @@ BroswerContent DingWidget::parseInfo() QRegExp reg_word( queryword ); + reg_word.setCaseSensitive( isCaseSensitive ); QStringList toplist, bottomlist; @@ -165,3 +166,3 @@ BroswerContent DingWidget::parseInfo() - if ( left.contains( queryword ) ) + if ( left.contains( queryword , isCaseSensitive ) ) { diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp index 549c40a..42604ee 100644 --- a/noncore/apps/odict/odict.cpp +++ b/noncore/apps/odict/odict.cpp @@ -96,3 +96,3 @@ void ODict::slotDisplayAbout() { - QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030108" ) ); + QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030111" ) ); } @@ -111,2 +111,5 @@ void ODict::slotStartQuery() //X { + + if ( casesens ) qDebug( "casesens = TRUE" ); + else qDebug( "casesens = FALSE" ); @@ -116,7 +119,2 @@ void ODict::slotStartQuery() - qDebug( " activated_name ist :" ); - qDebug( activated_name ); - - qDebug( " loadedDict() ist :" ); - qDebug( ding->loadedDict() ); if ( activated_name != ding->loadedDict() ) @@ -134,5 +132,3 @@ void ODict::slotStartQuery() qDebug( "Text sollte gesetzt sein..." ); - //X } - } |