summaryrefslogtreecommitdiff
path: root/noncore/apps
authorcniehaus <cniehaus>2003-01-03 22:31:19 (UTC)
committer cniehaus <cniehaus>2003-01-03 22:31:19 (UTC)
commitda1889933ccd03ef948fef7debda0b7e13f12add (patch) (unidiff)
tree98df5c800d091800f1264dcbd601b951b0522a96 /noncore/apps
parent5c6c68a2297762fe69ac6d1bd62fd0e09afeccb3 (diff)
downloadopie-da1889933ccd03ef948fef7debda0b7e13f12add.zip
opie-da1889933ccd03ef948fef7debda0b7e13f12add.tar.gz
opie-da1889933ccd03ef948fef7debda0b7e13f12add.tar.bz2
minifixes to avoid clashes with tille
Diffstat (limited to 'noncore/apps') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/dingwidget.cpp8
-rw-r--r--noncore/apps/odict/odict.cpp9
-rw-r--r--noncore/apps/odict/odict.h2
3 files changed, 16 insertions, 3 deletions
diff --git a/noncore/apps/odict/dingwidget.cpp b/noncore/apps/odict/dingwidget.cpp
index 6e3179f..61ddbbf 100644
--- a/noncore/apps/odict/dingwidget.cpp
+++ b/noncore/apps/odict/dingwidget.cpp
@@ -73,12 +73,14 @@ void DingWidget::parseInfo( QStringList &lines, QString &top, QString &bottom )
73 left = current.left( current.find(reg_div) ); 73 left = current.left( current.find(reg_div) );
74 right = current.right( current.length() - current.find(reg_div) - 1 ); 74 right = current.right( current.length() - current.find(reg_div) - 1 );
75 if ( left.contains( reg_word ) ){ 75 if ( left.contains( reg_word ) )
76 {
76 left.replace( queryword, substitute ); 77 left.replace( queryword, substitute );
77 toplist.append( left + " -> " + right); 78 toplist.append( left + " -> " + right);
78 }else{ 79 }
80 else
81 {
79 right.replace( reg_word, substitute ); 82 right.replace( reg_word, substitute );
80 bottomlist.append( right + " -> " + left ); 83 bottomlist.append( right + " -> " + left );
81 } 84 }
82 // .replace( reg_word, substitute );
83 } 85 }
84 86
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp
index 166f6b9..7de9169 100644
--- a/noncore/apps/odict/odict.cpp
+++ b/noncore/apps/odict/odict.cpp
@@ -33,4 +33,5 @@
33#include <qaction.h> 33#include <qaction.h>
34#include <qtextbrowser.h> 34#include <qtextbrowser.h>
35#include <qcombobox.h>
35 36
36#include <qpe/resource.h> 37#include <qpe/resource.h>
@@ -46,4 +47,5 @@ ODict::ODict() : QMainWindow()
46 QLabel* query_label = new QLabel( tr( "Query:" ) , hbox ); query_label->show(); 47 QLabel* query_label = new QLabel( tr( "Query:" ) , hbox ); query_label->show();
47 query_le = new QLineEdit( hbox ); 48 query_le = new QLineEdit( hbox );
49 query_co = new QComboBox( hbox );
48 ok_button = new QPushButton( tr( "&Ok" ), hbox ); 50 ok_button = new QPushButton( tr( "&Ok" ), hbox );
49 connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) ); 51 connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) );
@@ -63,4 +65,11 @@ void ODict::loadConfig()
63 regexp = cfg.readEntry( "regexp" ).toInt(); 65 regexp = cfg.readEntry( "regexp" ).toInt();
64 completewords = cfg.readEntry( "completewords" ).toInt(); 66 completewords = cfg.readEntry( "completewords" ).toInt();
67
68 QStringList groupListCfg = cfg.groupList().grep( "Method_" );
69 for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it )
70 {
71 cfg.setGroup( *it );
72 query_co->insertItem( cfg.readEntry( "Name" ) );
73 }
65} 74}
66 75
diff --git a/noncore/apps/odict/odict.h b/noncore/apps/odict/odict.h
index ef0822d..7c1f32f 100644
--- a/noncore/apps/odict/odict.h
+++ b/noncore/apps/odict/odict.h
@@ -21,4 +21,5 @@ class QActionGroup;
21class DingWidget; 21class DingWidget;
22class QTextBrowser; 22class QTextBrowser;
23class QComboBox;
23 24
24class ODict : public QMainWindow 25class ODict : public QMainWindow
@@ -37,4 +38,5 @@ class ODict : public QMainWindow
37 QHBox *hbox; 38 QHBox *hbox;
38 QLineEdit *query_le; 39 QLineEdit *query_le;
40 QComboBox *query_co;
39 QPushButton *ok_button; 41 QPushButton *ok_button;
40 42