summaryrefslogtreecommitdiff
path: root/core/pim/osearch/mainwindow.cpp
authortille <tille>2003-05-16 15:18:21 (UTC)
committer tille <tille>2003-05-16 15:18:21 (UTC)
commit75f1e9815410e75a6f9ae76d8db716c0c315ea45 (patch) (unidiff)
treef21eea4fb09db52644dc0141f8d368997ec322f0 /core/pim/osearch/mainwindow.cpp
parent708f1846703c3f13f7c9ac67130b6930f9607523 (diff)
downloadopie-75f1e9815410e75a6f9ae76d8db716c0c315ea45.zip
opie-75f1e9815410e75a6f9ae76d8db716c0c315ea45.tar.gz
opie-75f1e9815410e75a6f9ae76d8db716c0c315ea45.tar.bz2
search in text documents
Diffstat (limited to 'core/pim/osearch/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/mainwindow.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/pim/osearch/mainwindow.cpp b/core/pim/osearch/mainwindow.cpp
index 89ab690..6070fdf 100644
--- a/core/pim/osearch/mainwindow.cpp
+++ b/core/pim/osearch/mainwindow.cpp
@@ -20,6 +20,7 @@
20#include <qpe/qpeapplication.h> 20#include <qpe/qpeapplication.h>
21#include <qpe/config.h> 21#include <qpe/config.h>
22#include <qpe/global.h> 22#include <qpe/global.h>
23#include <opie/owait.h>
23#include <qaction.h> 24#include <qaction.h>
24#include <qmessagebox.h> 25#include <qmessagebox.h>
25#include <qpopupmenu.h> 26#include <qpopupmenu.h>
@@ -211,7 +212,6 @@ void MainWindow::stopTimer(QListViewItem*)
211 212
212void MainWindow::showPopup() 213void MainWindow::showPopup()
213{ 214{
214 qDebug("showPopup");
215 popupTimer->stop(); 215 popupTimer->stop();
216 if (!_currentItem) return; 216 if (!_currentItem) return;
217 QPopupMenu *pop = _currentItem->popupMenu(); 217 QPopupMenu *pop = _currentItem->popupMenu();
@@ -227,12 +227,15 @@ void MainWindow::setSearch( const QString &key )
227 227
228void MainWindow::searchStringChanged() 228void MainWindow::searchStringChanged()
229{ 229{
230#ifdef NEW_OWAIT
231 OWait("setting search string");
232#endif
230 searchTimer->stop(); 233 searchTimer->stop();
231 QString ss = _searchString; 234 QString ss = _searchString;
232 //ss = Global::stringQuote( _searchString ); 235 //ss = Global::stringQuote( _searchString );
233 //if (actionWholeWordsOnly->isOn()) 236 //if (actionWholeWordsOnly->isOn())
234 // ss = "\\s"+_searchString+"\\s"; 237 // ss = "\\s"+_searchString+"\\s";
235 qDebug(" set searchString >%s<",ss.latin1()); 238 //qDebug(" set searchString >%s<",ss.latin1());
236 QRegExp re( ss ); 239 QRegExp re( ss );
237 re.setCaseSensitive( actionCaseSensitiv->isOn() ); 240 re.setCaseSensitive( actionCaseSensitiv->isOn() );
238 re.setWildcard( actionWildcards->isOn() ); 241 re.setWildcard( actionWildcards->isOn() );
@@ -242,6 +245,9 @@ void MainWindow::searchStringChanged()
242 245
243void MainWindow::searchAll() 246void MainWindow::searchAll()
244{ 247{
248#ifdef NEW_OWAIT
249 OWait("searching...");
250#endif
245 for (SearchGroup *s = searches.first(); s != 0; s = searches.next() ){ 251 for (SearchGroup *s = searches.first(); s != 0; s = searches.next() ){
246 s->doSearch(); 252 s->doSearch();
247 //resultsList->repaint(); 253 //resultsList->repaint();