summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (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
@@ -115,5 +115,5 @@ void DingWidget::loadValues()
BroswerContent DingWidget::parseInfo()
{
- QStringList search = lines.grep( queryword );
+ QStringList search = lines.grep( queryword , isCaseSensitive );
QString current;
@@ -127,4 +127,5 @@ BroswerContent DingWidget::parseInfo()
QRegExp reg_div( trenner );
QRegExp reg_word( queryword );
+ reg_word.setCaseSensitive( isCaseSensitive );
QStringList toplist, bottomlist;
QString substitute = "<strong>"+queryword+"</strong>";
@@ -164,5 +165,5 @@ BroswerContent DingWidget::parseInfo()
right = current.right( current.length() - current.find(trenner) -2 );
- if ( left.contains( queryword ) )
+ if ( left.contains( queryword , isCaseSensitive ) )
{
left.replace( queryword, substitute );
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
@@ -95,5 +95,5 @@ void ODict::saveConfig()
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" ) );
}
@@ -110,4 +110,7 @@ void ODict::slotStartQuery()
//X else
//X {
+
+ if ( casesens ) qDebug( "casesens = TRUE" );
+ else qDebug( "casesens = FALSE" );
ding->setCaseSensitive( casesens );
@@ -115,9 +118,4 @@ void ODict::slotStartQuery()
ding->setDict( activated_name );
- qDebug( " activated_name ist :" );
- qDebug( activated_name );
-
- qDebug( " loadedDict() ist :" );
- qDebug( ding->loadedDict() );
if ( activated_name != ding->loadedDict() )
{
@@ -133,7 +131,5 @@ void ODict::slotStartQuery()
qDebug( "Text sollte gesetzt sein..." );
-
//X }
-
}