Diffstat (limited to 'core/pim/today/plugins/todolist/todopluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/todolist/todopluginwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/today/plugins/todolist/todopluginwidget.cpp b/core/pim/today/plugins/todolist/todopluginwidget.cpp index 4731b43..d793aae 100644 --- a/core/pim/today/plugins/todolist/todopluginwidget.cpp +++ b/core/pim/today/plugins/todolist/todopluginwidget.cpp | |||
@@ -30,37 +30,37 @@ | |||
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 | todo = 0l; | 34 | todo = 0l; |
35 | 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(); |
42 | m_maxCharClip = 36; | ||
43 | getTodo(); | 42 | getTodo(); |
44 | } | 43 | } |
45 | 44 | ||
46 | TodolistPluginWidget::~TodolistPluginWidget() { | 45 | TodolistPluginWidget::~TodolistPluginWidget() { |
47 | delete todo; | 46 | delete todo; |
48 | } | 47 | } |
49 | 48 | ||
50 | 49 | ||
51 | void TodolistPluginWidget::readConfig() { | 50 | void TodolistPluginWidget::readConfig() { |
52 | Config cfg( "todaytodoplugin" ); | 51 | Config cfg( "todaytodoplugin" ); |
53 | cfg.setGroup( "config" ); | 52 | cfg.setGroup( "config" ); |
54 | m_maxLinesTask = cfg.readNumEntry( "maxlinestask", 5 ); | 53 | m_maxLinesTask = cfg.readNumEntry( "maxlinestask", 5 ); |
54 | m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); | ||
55 | } | 55 | } |
56 | 56 | ||
57 | 57 | ||
58 | /** | 58 | /** |
59 | * Get the todos | 59 | * Get the todos |
60 | */ | 60 | */ |
61 | void TodolistPluginWidget::getTodo() { | 61 | void TodolistPluginWidget::getTodo() { |
62 | 62 | ||
63 | QVBoxLayout* layoutTodo = new QVBoxLayout( this ); | 63 | QVBoxLayout* layoutTodo = new QVBoxLayout( this ); |
64 | 64 | ||
65 | if ( todoLabel ) { | 65 | if ( todoLabel ) { |
66 | delete todoLabel; | 66 | delete todoLabel; |