summaryrefslogtreecommitdiff
path: root/core/pim/osearch/todosearch.cpp
Unidiff
Diffstat (limited to 'core/pim/osearch/todosearch.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/osearch/todosearch.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/pim/osearch/todosearch.cpp b/core/pim/osearch/todosearch.cpp
index 1ed7370..8a9ae39 100644
--- a/core/pim/osearch/todosearch.cpp
+++ b/core/pim/osearch/todosearch.cpp
@@ -4,38 +4,39 @@
4// 4//
5// Description: 5// Description:
6// 6//
7// 7//
8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003 8// Author: Patrick S. Vogt <tille@handhelds.org>, (C) 2003
9// 9//
10// Copyright: See COPYING file that comes with this distribution 10// Copyright: See COPYING file that comes with this distribution
11// 11//
12// 12//
13#include "todosearch.h" 13#include "todosearch.h"
14#include "todoitem.h" 14#include "todoitem.h"
15 15
16#include <qpe/resource.h> 16#include <opie2/oresource.h>
17
17#include <qpe/config.h> 18#include <qpe/config.h>
18 19
19#include <qaction.h> 20#include <qaction.h>
20#include <qpopupmenu.h> 21#include <qpopupmenu.h>
21 22
22using namespace Opie; 23using namespace Opie;
23TodoSearch::TodoSearch(QListView* parent, QString name) 24TodoSearch::TodoSearch(QListView* parent, QString name)
24: SearchGroup(parent, name), _todos(0), _popupMenu(0) 25: SearchGroup(parent, name), _todos(0), _popupMenu(0)
25{ 26{
26 //AppLnkSet als(QPEApplication::qpeDir()); 27 //AppLnkSet als(QPEApplication::qpeDir());
27 //setPixmap( 0, als.findExec("todolist")->pixmap() ); 28 //setPixmap( 0, als.findExec("todolist")->pixmap() );
28 QIconSet is = Resource::loadIconSet( "todo/TodoList" ); 29 setPixmap( 0, Opie::Core::OResource::loadPixmap( "todo/TodoList", Opie::Core::OResource::SmallIcon ) );
29 setPixmap( 0, is.pixmap( QIconSet::Large, true ) ); 30
30 actionShowCompleted = new QAction( QObject::tr("Show completed tasks"),QString::null, 0, 0, 0, true ); 31 actionShowCompleted = new QAction( QObject::tr("Show completed tasks"),QString::null, 0, 0, 0, true );
31 Config cfg( "osearch", Config::User ); 32 Config cfg( "osearch", Config::User );
32 cfg.setGroup( "todo_settings" ); 33 cfg.setGroup( "todo_settings" );
33 actionShowCompleted->setOn( cfg.readBoolEntry( "show_completed_tasks", false ) ); 34 actionShowCompleted->setOn( cfg.readBoolEntry( "show_completed_tasks", false ) );
34 35
35} 36}
36 37
37 38
38TodoSearch::~TodoSearch() 39TodoSearch::~TodoSearch()
39{ 40{
40 Config cfg( "osearch", Config::User ); 41 Config cfg( "osearch", Config::User );
41 cfg.setGroup( "todo_settings" ); 42 cfg.setGroup( "todo_settings" );