summaryrefslogtreecommitdiff
path: root/noncore/apps/odict/odict.cpp
authorcniehaus <cniehaus>2003-01-03 23:21:47 (UTC)
committer cniehaus <cniehaus>2003-01-03 23:21:47 (UTC)
commit004a8ac1b25530801f68d4a041b4355ecc60c9eb (patch) (unidiff)
treed850779620bf96977c68721ff1964762860df802 /noncore/apps/odict/odict.cpp
parent28b06247aaa55f80d91be1f8591e2cc30bac29d3 (diff)
downloadopie-004a8ac1b25530801f68d4a041b4355ecc60c9eb.zip
opie-004a8ac1b25530801f68d4a041b4355ecc60c9eb.tar.gz
opie-004a8ac1b25530801f68d4a041b4355ecc60c9eb.tar.bz2
update tille
Diffstat (limited to 'noncore/apps/odict/odict.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/odict.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp
index 7de9169..2857c65 100644
--- a/noncore/apps/odict/odict.cpp
+++ b/noncore/apps/odict/odict.cpp
@@ -40,4 +40,6 @@
40ODict::ODict() : QMainWindow() 40ODict::ODict() : QMainWindow()
41{ 41{
42
43 activated_name = QString::null;
42 vbox = new QVBox( this ); 44 vbox = new QVBox( this );
43 setCaption( tr( "OPIE-Dictionary" ) ); 45 setCaption( tr( "OPIE-Dictionary" ) );
@@ -48,4 +50,5 @@ ODict::ODict() : QMainWindow()
48 query_le = new QLineEdit( hbox ); 50 query_le = new QLineEdit( hbox );
49 query_co = new QComboBox( hbox ); 51 query_co = new QComboBox( hbox );
52 connect( query_co , SIGNAL( activated(int) ), this, SLOT( slotMethodChanged(int) ) );
50 ok_button = new QPushButton( tr( "&Ok" ), hbox ); 53 ok_button = new QPushButton( tr( "&Ok" ), hbox );
51 connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) ); 54 connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) );
@@ -93,5 +96,5 @@ void ODict::slotStartQuery()
93{ 96{
94 QString querystring = query_le->text(); 97 QString querystring = query_le->text();
95 DingWidget *ding = new DingWidget( vbox , querystring , browser_top, browser_bottom); 98 DingWidget *ding = new DingWidget( vbox , querystring , browser_top, browser_bottom, activated_name);
96} 99}
97 100
@@ -137,4 +140,9 @@ void ODict::slotSetParameter( int count )
137} 140}
138 141
142void ODict::slotMethodChanged( int methodnumber )
143{
144 activated_name = query_co->currentText();
145}
146
139void ODict::setupMenus() 147void ODict::setupMenus()
140{ 148{