summaryrefslogtreecommitdiff
path: root/noncore/apps/odict/odict.cpp
Unidiff
Diffstat (limited to 'noncore/apps/odict/odict.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/odict/odict.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp
index e0104eb..6f176f9 100644
--- a/noncore/apps/odict/odict.cpp
+++ b/noncore/apps/odict/odict.cpp
@@ -89,31 +89,32 @@ void ODict::saveConfig()
89} 89}
90 90
91void ODict::slotDisplayAbout() 91void ODict::slotDisplayAbout()
92{ 92{
93 QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030104" ) ); 93 QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030104" ) );
94} 94}
95 95
96void ODict::slotStartQuery() 96void ODict::slotStartQuery()
97{ 97{
98 QString querystring = query_le->text(); 98 QString querystring = query_le->text();
99 qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1()); 99 qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1());
100 if (querystring.isEmpty()){ 100 if (querystring.isEmpty()){
101 qWarning("empty querystring"); 101 qWarning("empty querystring");
102 return; 102 return;
103 } 103 }
104 if (!activated_name || activated_name.isEmpty()) 104 if (!activated_name || activated_name.isEmpty())
105 QMessageBox::warning(this,tr("No Dictionary"),tr("Please choose a dictonary") ); 105 QMessageBox::warning(this,tr("No Dictionary"),tr("Please choose a dictonary") );
106 else 106 else
107 DingWidget *ding = new DingWidget( querystring , browser_top, browser_bottom, activated_name ); 107 DingWidget *ding = new DingWidget( querystring , browser_top, browser_bottom, activated_name );
108 ding->setText();
108} 109}
109 110
110 111
111void ODict::slotSetErrorcount( int count ) 112void ODict::slotSetErrorcount( int count )
112{ 113{
113 errorTol = count; 114 errorTol = count;
114} 115}
115 116
116void ODict::slotSettings() 117void ODict::slotSettings()
117{ 118{
118 ConfigDlg dlg( this, "Config" , true); 119 ConfigDlg dlg( this, "Config" , true);
119 if ( dlg.exec() == QDialog::Accepted ) 120 if ( dlg.exec() == QDialog::Accepted )