Diffstat (limited to 'core/pim/today/plugins/todolist/todopluginwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/today/plugins/todolist/todopluginwidget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/pim/today/plugins/todolist/todopluginwidget.cpp b/core/pim/today/plugins/todolist/todopluginwidget.cpp index 2a0e5a3..4731b43 100644 --- a/core/pim/today/plugins/todolist/todopluginwidget.cpp +++ b/core/pim/today/plugins/todolist/todopluginwidget.cpp | |||
@@ -28,14 +28,14 @@ | |||
28 | #include <qpe/qcopenvelope_qws.h> | 28 | #include <qpe/qcopenvelope_qws.h> |
29 | 29 | ||
30 | TodolistPluginWidget::TodolistPluginWidget( QWidget *parent, const char* name) | 30 | TodolistPluginWidget::TodolistPluginWidget( QWidget *parent, const char* name) |
31 | : QWidget(parent, name ) { | 31 | : QWidget(parent, name ) { |
32 | 32 | ||
33 | todoLabel= 0l; | 33 | todoLabel= 0l; |
34 | |||
35 | todo = 0l; | 34 | todo = 0l; |
35 | |||
36 | if ( todo ) { | 36 | if ( todo ) { |
37 | delete todo; | 37 | delete todo; |
38 | } | 38 | } |
39 | todo = new ToDoDB(); | 39 | todo = new ToDoDB(); |
40 | 40 | ||
41 | readConfig(); | 41 | readConfig(); |
@@ -44,14 +44,15 @@ TodolistPluginWidget::TodolistPluginWidget( QWidget *parent, const char* name) | |||
44 | } | 44 | } |
45 | 45 | ||
46 | TodolistPluginWidget::~TodolistPluginWidget() { | 46 | TodolistPluginWidget::~TodolistPluginWidget() { |
47 | delete todo; | 47 | delete todo; |
48 | } | 48 | } |
49 | 49 | ||
50 | |||
50 | void TodolistPluginWidget::readConfig() { | 51 | void TodolistPluginWidget::readConfig() { |
51 | Config cfg( "todaytodolistplugin" ); | 52 | Config cfg( "todaytodoplugin" ); |
52 | cfg.setGroup( "config" ); | 53 | cfg.setGroup( "config" ); |
53 | m_maxLinesTask = cfg.readNumEntry( "maxlinestask", 5 ); | 54 | m_maxLinesTask = cfg.readNumEntry( "maxlinestask", 5 ); |
54 | } | 55 | } |
55 | 56 | ||
56 | 57 | ||
57 | /** | 58 | /** |
@@ -65,12 +66,13 @@ void TodolistPluginWidget::getTodo() { | |||
65 | delete todoLabel; | 66 | delete todoLabel; |
66 | } | 67 | } |
67 | 68 | ||
68 | todoLabel = new OClickableLabel( this ); | 69 | todoLabel = new OClickableLabel( this ); |
69 | todoLabel->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum ) ); | 70 | todoLabel->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum ) ); |
70 | connect( todoLabel, SIGNAL( clicked() ), this, SLOT( startTodolist() ) ); | 71 | connect( todoLabel, SIGNAL( clicked() ), this, SLOT( startTodolist() ) ); |
72 | |||
71 | QString output; | 73 | QString output; |
72 | QString tmpout; | 74 | QString tmpout; |
73 | int count = 0; | 75 | int count = 0; |
74 | int ammount = 0; | 76 | int ammount = 0; |
75 | 77 | ||
76 | // get overdue todos first | 78 | // get overdue todos first |