author | drw <drw> | 2005-04-15 17:18:32 (UTC) |
---|---|---|
committer | drw <drw> | 2005-04-15 17:18:32 (UTC) |
commit | e2d5048b65d95ba7d658aabadece4e91f17f6310 (patch) (side-by-side diff) | |
tree | f1ab32bf3790a315554fe4baa191d74f80d66933 /core/pim/osearch/todoitem.cpp | |
parent | 4bf8d42034beee5e28b25182e21cf74f3c2da6a8 (diff) | |
download | opie-e2d5048b65d95ba7d658aabadece4e91f17f6310.zip opie-e2d5048b65d95ba7d658aabadece4e91f17f6310.tar.gz opie-e2d5048b65d95ba7d658aabadece4e91f17f6310.tar.bz2 |
Resource -> OResource
Diffstat (limited to 'core/pim/osearch/todoitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/osearch/todoitem.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/core/pim/osearch/todoitem.cpp b/core/pim/osearch/todoitem.cpp index 34e790a..9172344 100644 --- a/core/pim/osearch/todoitem.cpp +++ b/core/pim/osearch/todoitem.cpp @@ -3,30 +3,28 @@ // C++ Implementation: $MODULE$ // // Description: // // // Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 // // Copyright: See COPYING file that comes with this distribution // // #include "todoitem.h" +#include <opie2/oresource.h> -#include <qpe/resource.h> #include <qpe/qcopenvelope_qws.h> - - using namespace Opie; TodoItem::TodoItem(OListViewItem* parent, OPimTodo *todo) : ResultItem(parent) { _todo = todo; setText( 0, todo->toShortText() ); setIcon(); } TodoItem::~TodoItem() { delete _todo; @@ -52,32 +50,32 @@ QIntDict<QString> TodoItem::actions() { QIntDict<QString> result; result.insert( 0, new QString( QObject::tr("show") ) ); result.insert( 1, new QString( QObject::tr("edit") ) ); return result; } void TodoItem::setIcon() { QPixmap icon; switch ( _todo->lastHitField() ) { case -1: - icon = Resource::loadPixmap( "reset" ); + icon = Opie::Core::OResource::loadPixmap( "reset", Opie::Core::OResource::SmallIcon ); break; case OPimTodo::Description: - icon = Resource::loadPixmap( "txt" ); + icon = Opie::Core::OResource::loadPixmap( "txt", Opie::Core::OResource::SmallIcon ); break; case OPimTodo::Summary: - icon = Resource::loadPixmap( "osearch/summary" ); + icon = Opie::Core::OResource::loadPixmap( "osearch/summary", Opie::Core::OResource::SmallIcon ); break; case OPimTodo::Priority: - icon = Resource::loadPixmap( "todo/priority1" ); + icon = Opie::Core::OResource::loadPixmap( "todo/priority1", Opie::Core::OResource::SmallIcon ); break; case OPimTodo::HasDate: - icon = Resource::loadPixmap( "osearch/clock" ); + icon = Opie::Core::OResource::loadPixmap( "osearch/clock", Opie::Core::OResource::SmallIcon ); break; default: - icon = Resource::loadPixmap( "DocsIcon" ); + icon = Opie::Core::OResource::loadPixmap( "DocsIcon", Opie::Core::OResource::SmallIcon ); break; } setPixmap( 0, icon ); } |