author | cniehaus <cniehaus> | 2003-05-10 13:16:54 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2003-05-10 13:16:54 (UTC) |
commit | 8bf3021bf5e86f7f6f6083606d77427adc8d13a7 (patch) (side-by-side diff) | |
tree | 821e9798a7d388fe57ccf2e8cdc796bb147ca780 /noncore/apps/odict/dingwidget.cpp | |
parent | 882b5190d02c33aa8c893e8aa54bf3d38ac255c8 (diff) | |
download | opie-8bf3021bf5e86f7f6f6083606d77427adc8d13a7.zip opie-8bf3021bf5e86f7f6f6083606d77427adc8d13a7.tar.gz opie-8bf3021bf5e86f7f6f6083606d77427adc8d13a7.tar.bz2 |
quite some changes
Diffstat (limited to 'noncore/apps/odict/dingwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/odict/dingwidget.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp index 0707bfb..ed67abf 100644 --- a/noncore/apps/odict/dingwidget.cpp +++ b/noncore/apps/odict/dingwidget.cpp @@ -18,17 +18,10 @@ #include <qfile.h> #include <qpe/config.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qpushbutton.h> -#include <qlineedit.h> -#include <qmainwindow.h> #include <qstring.h> #include <qtextstream.h> #include <qstringlist.h> #include <qregexp.h> -#include <qtextbrowser.h> -//#include <stdlib.h> // for getenv DingWidget::DingWidget( ) { @@ -39,12 +32,17 @@ DingWidget::DingWidget( ) void DingWidget::loadDict( QString name ) { + qDebug( "bin in DingWidget::loadDict(). name ist:" ); + qDebug( name ); + dictName = name; Config cfg( "odict" ); - if ( !methodname ) return; + if ( !methodname ) { return; } cfg.setGroup( "Method_" + methodname ); QFile file( cfg.readEntry( "file" ) ); + qDebug( cfg.readEntry( "file" ) ); + if( file.open( IO_ReadOnly ) ) { QTextStream stream( &file ); @@ -55,9 +53,10 @@ void DingWidget::loadDict( QString name ) file.close(); } loadValues(); + } -QString DingWidget::loadedDict() +QString DingWidget::loadedDict() const { return dictName; } @@ -102,6 +101,8 @@ BroswerContent DingWidget::setText( QString word ) BroswerContent DingWidget::parseInfo() { + qDebug( "bin in DingWidget::parseInfo()" ); + if ( isCompleteWord ) queryword = " " + queryword + " "; QStringList search = lines.grep( queryword , isCaseSensitive ); |