summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/contactitem.cpp4
-rw-r--r--core/pim/osearch/datebooksearch.cpp17
-rw-r--r--core/pim/osearch/searchgroup.h1
-rw-r--r--core/pim/osearch/todoitem.cpp6
-rw-r--r--core/pim/osearch/todosearch.cpp15
5 files changed, 5 insertions, 38 deletions
diff --git a/core/pim/osearch/contactitem.cpp b/core/pim/osearch/contactitem.cpp
index 29d81be..788a415 100644
--- a/core/pim/osearch/contactitem.cpp
+++ b/core/pim/osearch/contactitem.cpp
@@ -40,3 +40,3 @@ void ContactItem::editItem()
40 QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); 40 QCopEnvelope e("QPE/Application/addressbook", "edit(int)");
41 //QCopEnvelope e("QPE/Addressbook", "editEvent(int)"); 41 //QCopEnvelope e("QPE/Addressbook", "edit(int)");
42 e << _contact->uid(); 42 e << _contact->uid();
@@ -47,3 +47,3 @@ void ContactItem::showItem()
47 QCopEnvelope e("QPE/Application/addressbook", "show(int)"); 47 QCopEnvelope e("QPE/Application/addressbook", "show(int)");
48 //QCopEnvelope e("QPE/Addressbook", "viewDefault(QDate)"); 48 //QCopEnvelope e("QPE/Addressbook", "show(int)");
49 e << _contact->uid(); 49 e << _contact->uid();
diff --git a/core/pim/osearch/datebooksearch.cpp b/core/pim/osearch/datebooksearch.cpp
index 0590252..83b99f5 100644
--- a/core/pim/osearch/datebooksearch.cpp
+++ b/core/pim/osearch/datebooksearch.cpp
@@ -39,3 +39,2 @@ void DatebookSearch::expand()
39 } 39 }
40#ifdef LIPBOPIE_SEARCH
41 ORecordList<OEvent> results = _dates->matchRegexp(_search); 40 ORecordList<OEvent> results = _dates->matchRegexp(_search);
@@ -45,18 +44,2 @@ void DatebookSearch::expand()
45 } 44 }
46#else
47 ORecordList<OEvent> list = _dates->allRecords();
48 QArray<int> m_currentQuery( list.count() );
49 for( uint i=0; i<list.count(); i++ ){
50 //qDebug("datebook: %s",list[i].description().latin1() );
51 if (
52 ( list[i].description().contains( _search ) ) ||
53 ( list[i].note().contains( _search ) ) ||
54 ( list[i].location().contains( _search ) )
55 ){
56 //qDebug("FOUND");
57 new EventItem( this, new OEvent( list[i] ) );
58 }
59
60 }
61#endif
62} 45}
diff --git a/core/pim/osearch/searchgroup.h b/core/pim/osearch/searchgroup.h
index 4195e6f..d26ff17 100644
--- a/core/pim/osearch/searchgroup.h
+++ b/core/pim/osearch/searchgroup.h
@@ -18,3 +18,2 @@
18#include <qregexp.h> 18#include <qregexp.h>
19#define LIPBOPIE_SEARCH
20 19
diff --git a/core/pim/osearch/todoitem.cpp b/core/pim/osearch/todoitem.cpp
index 4ea4586..145b423 100644
--- a/core/pim/osearch/todoitem.cpp
+++ b/core/pim/osearch/todoitem.cpp
@@ -44,4 +44,3 @@ void TodoItem::showItem()
44 //QCopEnvelope e("QPE/Todolist", "show(int)"); 44 //QCopEnvelope e("QPE/Todolist", "show(int)");
45 qDebug("calling todolist for %i",_todo->uid()); 45 QCopEnvelope e("QPE/Application/todolist", "show(int)");
46 QCopEnvelope e("QPE/Todolist", "show(int)");
47 e << _todo->uid(); 46 e << _todo->uid();
@@ -51,3 +50,4 @@ void TodoItem::editItem()
51{ 50{
52 QCopEnvelope e("QPE/Todolist", "edit(int)"); 51 //QCopEnvelope e("QPE/Todolist", "edit(int)");
52 QCopEnvelope e("QPE/Application/todolist", "edit(int)");
53 e << _todo->uid(); 53 e << _todo->uid();
diff --git a/core/pim/osearch/todosearch.cpp b/core/pim/osearch/todosearch.cpp
index fba8aa0..cbe356b 100644
--- a/core/pim/osearch/todosearch.cpp
+++ b/core/pim/osearch/todosearch.cpp
@@ -16,3 +16,2 @@
16#include <opie/otodo.h> 16#include <opie/otodo.h>
17#include <qdir.h>
18 17
@@ -23,3 +22,2 @@ TodoSearch::TodoSearch(QListView* parent, QString name)
23{ 22{
24 //_fileName = QDir::homeDirPath()+"/Applications/todolist/todolist.xml";
25 _todos = 0; 23 _todos = 0;
@@ -44,3 +42,2 @@ void TodoSearch::expand()
44 42
45#ifdef LIPBOPIE_SEARCH
46 ORecordList<OTodo> results = _todos->matchRegexp(_search); 43 ORecordList<OTodo> results = _todos->matchRegexp(_search);
@@ -50,14 +47,2 @@ void TodoSearch::expand()
50 } 47 }
51#else
52 ORecordList<OTodo> list = _todos->allRecords();
53 QArray<int> m_currentQuery( list.count() );
54 for( uint i=0; i<list.count(); i++ ){
55 // qDebug("todo: %s",list[i].summary().latin1() );
56 if ( list[i].match( _search ) ){
57 // qDebug("FOUND");
58 new TodoItem( this, new OTodo( list[i] ) );
59 }
60
61 }
62#endif
63 48