From 882b5190d02c33aa8c893e8aa54bf3d38ac255c8 Mon Sep 17 00:00:00 2001 From: tille Date: Sat, 10 May 2003 12:37:35 +0000 Subject: clean up --- (limited to 'core/pim') 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 @@ -38,14 +38,14 @@ QString ContactItem::toRichText() void ContactItem::editItem() { QCopEnvelope e("QPE/Application/addressbook", "edit(int)"); -// QCopEnvelope e("QPE/Addressbook", "editEvent(int)"); +// QCopEnvelope e("QPE/Addressbook", "edit(int)"); e << _contact->uid(); } void ContactItem::showItem() { QCopEnvelope e("QPE/Application/addressbook", "show(int)"); -// QCopEnvelope e("QPE/Addressbook", "viewDefault(QDate)"); +// QCopEnvelope e("QPE/Addressbook", "show(int)"); 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 @@ -37,27 +37,10 @@ void DatebookSearch::expand() _dates = new ODateBookAccess(); _dates->load(); } -#ifdef LIPBOPIE_SEARCH ORecordList results = _dates->matchRegexp(_search); setText(0, text(0) + " (" + QString::number( results.count() ) + ")" ); for (uint i = 0; i < results.count(); i++) { new EventItem( this, new OEvent( results[i] )); } -#else - ORecordList list = _dates->allRecords(); - QArray m_currentQuery( list.count() ); - for( uint i=0; i -#define LIPBOPIE_SEARCH /** @author Patrick S. Vogt 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 @@ -42,13 +42,13 @@ QString TodoItem::toRichText() void TodoItem::showItem() { // QCopEnvelope e("QPE/Todolist", "show(int)"); - qDebug("calling todolist for %i",_todo->uid()); - QCopEnvelope e("QPE/Todolist", "show(int)"); + QCopEnvelope e("QPE/Application/todolist", "show(int)"); e << _todo->uid(); } void TodoItem::editItem() { - QCopEnvelope e("QPE/Todolist", "edit(int)"); +// QCopEnvelope e("QPE/Todolist", "edit(int)"); + QCopEnvelope e("QPE/Application/todolist", "edit(int)"); 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 @@ -14,14 +14,12 @@ #include #include -#include #include "todoitem.h" TodoSearch::TodoSearch(QListView* parent, QString name) : SearchGroup(parent, name) { - //_fileName = QDir::homeDirPath()+"/Applications/todolist/todolist.xml"; _todos = 0; } @@ -42,24 +40,11 @@ void TodoSearch::expand() _todos->load(); } -#ifdef LIPBOPIE_SEARCH ORecordList results = _todos->matchRegexp(_search); setText(0, text(0) + " (" + QString::number( results.count() ) + ")"); for (uint i = 0; i < results.count(); i++) { new TodoItem( this, new OTodo( results[i] )); } -#else - ORecordList list = _todos->allRecords(); - QArray m_currentQuery( list.count() ); - for( uint i=0; i