summaryrefslogtreecommitdiff
path: root/noncore
authorcniehaus <cniehaus>2003-01-11 18:28:09 (UTC)
committer cniehaus <cniehaus>2003-01-11 18:28:09 (UTC)
commite3fa5685865712ca930d9124b974506766e7b11e (patch) (unidiff)
tree377298838435ca45a23945660f687583788d4a97 /noncore
parentfecbb2ca2714c1699a76036865e6e1120110ac1d (diff)
downloadopie-e3fa5685865712ca930d9124b974506766e7b11e.zip
opie-e3fa5685865712ca930d9124b974506766e7b11e.tar.gz
opie-e3fa5685865712ca930d9124b974506766e7b11e.tar.bz2
check if the user want to serach casesensitive or not
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/dingwidget.cpp5
-rw-r--r--noncore/apps/odict/odict.cpp12
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()
116{ 116{
117 QStringList search = lines.grep( queryword ); 117 QStringList search = lines.grep( queryword , isCaseSensitive );
118 118
@@ -128,2 +128,3 @@ BroswerContent DingWidget::parseInfo()
128 QRegExp reg_word( queryword ); 128 QRegExp reg_word( queryword );
129 reg_word.setCaseSensitive( isCaseSensitive );
129 QStringList toplist, bottomlist; 130 QStringList toplist, bottomlist;
@@ -165,3 +166,3 @@ BroswerContent DingWidget::parseInfo()
165 166
166 if ( left.contains( queryword ) ) 167 if ( left.contains( queryword , isCaseSensitive ) )
167 { 168 {
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()
96{ 96{
97 QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030108" ) ); 97 QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030111" ) );
98} 98}
@@ -111,2 +111,5 @@ void ODict::slotStartQuery()
111 //X { 111 //X {
112
113 if ( casesens ) qDebug( "casesens = TRUE" );
114 else qDebug( "casesens = FALSE" );
112 115
@@ -116,7 +119,2 @@ void ODict::slotStartQuery()
116 119
117 qDebug( " activated_name ist :" );
118 qDebug( activated_name );
119
120 qDebug( " loadedDict() ist :" );
121 qDebug( ding->loadedDict() );
122 if ( activated_name != ding->loadedDict() ) 120 if ( activated_name != ding->loadedDict() )
@@ -134,5 +132,3 @@ void ODict::slotStartQuery()
134 qDebug( "Text sollte gesetzt sein..." ); 132 qDebug( "Text sollte gesetzt sein..." );
135
136 //X } 133 //X }
137
138} 134}