summaryrefslogtreecommitdiff
path: root/core/pim/osearch/mainwindow.cpp
Unidiff
Diffstat (limited to 'core/pim/osearch/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/mainwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/pim/osearch/mainwindow.cpp b/core/pim/osearch/mainwindow.cpp
index 8b6a5df..f329e83 100644
--- a/core/pim/osearch/mainwindow.cpp
+++ b/core/pim/osearch/mainwindow.cpp
@@ -17,12 +17,13 @@
17#include "todosearch.h" 17#include "todosearch.h"
18#include "datebooksearch.h" 18#include "datebooksearch.h"
19#include "applnksearch.h" 19#include "applnksearch.h"
20#include "doclnksearch.h" 20#include "doclnksearch.h"
21#include "mainwindow.h" 21#include "mainwindow.h"
22 22
23#include <opie2/odebug.h>
23#include <opie2/owait.h> 24#include <opie2/owait.h>
24 25
25#include <qpe/qpemessagebox.h> 26#include <qpe/qpemessagebox.h>
26#include <qpe/resource.h> 27#include <qpe/resource.h>
27#include <qpe/config.h> 28#include <qpe/config.h>
28 29
@@ -226,13 +227,13 @@ void MainWindow::setCurrent(QListViewItem *item)
226 richEdit->setText( res->toRichText() ); 227 richEdit->setText( res->toRichText() );
227 QIntDict<QString> acts = res->actions(); 228 QIntDict<QString> acts = res->actions();
228 QButton *button; 229 QButton *button;
229 for (uint i = 0; i < acts.count(); i++){ 230 for (uint i = 0; i < acts.count(); i++){
230 button = buttonMap[i]; 231 button = buttonMap[i];
231 if (!button) { 232 if (!button) {
232 qWarning(" no button for %s", (*acts[i]).latin1() ); 233 Opie::Core::owarn << " no button for " << *acts[i] << oendl;
233 button = new QPushButton( buttonBox ); 234 button = new QPushButton( buttonBox );
234 buttonMap.insert( i, button ); 235 buttonMap.insert( i, button );
235 signalMapper->setMapping(button, i ); 236 signalMapper->setMapping(button, i );
236 connect(button, SIGNAL(clicked() ), signalMapper, SLOT(map() ) ); 237 connect(button, SIGNAL(clicked() ), signalMapper, SLOT(map() ) );
237 } 238 }
238 button->setText( *acts[i] ); 239 button->setText( *acts[i] );
@@ -280,13 +281,13 @@ void MainWindow::searchStringChanged()
280#endif 281#endif
281 searchTimer->stop(); 282 searchTimer->stop();
282 QString ss = _searchString; 283 QString ss = _searchString;
283 //ss = Global::stringQuote( _searchString ); 284 //ss = Global::stringQuote( _searchString );
284 //if (actionWholeWordsOnly->isOn()) 285 //if (actionWholeWordsOnly->isOn())
285 // ss = "\\s"+_searchString+"\\s"; 286 // ss = "\\s"+_searchString+"\\s";
286 //qDebug(" set searchString >%s<",ss.latin1()); 287 //Opie:Core::odebug << " set searchString >" << ss << "<" << oendl;
287 QRegExp re( ss ); 288 QRegExp re( ss );
288 re.setCaseSensitive( actionCaseSensitiv->isOn() ); 289 re.setCaseSensitive( actionCaseSensitiv->isOn() );
289 re.setWildcard( actionWildcards->isOn() ); 290 re.setWildcard( actionWildcards->isOn() );
290 for (SearchGroup *s = searches.first(); s != 0; s = searches.next() ) 291 for (SearchGroup *s = searches.first(); s != 0; s = searches.next() )
291 s->setSearch( re ); 292 s->setSearch( re );
292} 293}