author | harlekin <harlekin> | 2002-09-19 21:01:00 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-09-19 21:01:00 (UTC) |
commit | c03cc47ea4ecba39c89283f9bfc3ee55f572793f (patch) (unidiff) | |
tree | 7cab842df67039350234bbb6700773928c2b35ab /core/pim/today/plugins/todolist/todopluginwidget.cpp | |
parent | 65ba4e3610c94ba1de71a41dd6bf69662555e206 (diff) | |
download | opie-c03cc47ea4ecba39c89283f9bfc3ee55f572793f.zip opie-c03cc47ea4ecba39c89283f9bfc3ee55f572793f.tar.gz opie-c03cc47ea4ecba39c89283f9bfc3ee55f572793f.tar.bz2 |
added line clipping to config and code cleanups
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 | |||
@@ -36,25 +36,25 @@ TodolistPluginWidget::TodolistPluginWidget( QWidget *parent, const char* name ) | |||
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 | */ |