summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/today.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 0fa7ad5..af1d4e4 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -85,25 +85,26 @@ void Today::autoStart() {
85 85
86void Today::draw() { 86void Today::draw() {
87 init(); 87 init();
88 getDates(); 88 getDates();
89 getMail(); 89 getMail();
90 getTodo(); 90 getTodo();
91 // how often refresh 91 // how often refresh
92 QTimer::singleShot( 5*1000, this, SLOT(draw()) ); 92 QTimer::singleShot( 5*1000, this, SLOT(draw()) );
93} 93}
94 94
95void Today::init() { 95void Today::init() {
96 QDate date = QDate::currentDate(); 96 QDate date = QDate::currentDate();
97 QString time = (tr( date.toString() ), white); 97 QString time = (tr( date.toString()) );
98// QString time = (tr( date.toString()) , white);
98 99
99 TextLabel1->setText(time); 100 TextLabel1->setText(time);
100 db = new DateBookDB; 101 db = new DateBookDB;
101 102
102 // read config 103 // read config
103 Config cfg("today"); 104 Config cfg("today");
104 cfg.setGroup("BaseConfig"); 105 cfg.setGroup("BaseConfig");
105 106
106 // how many lines should be showed in the task section 107 // how many lines should be showed in the task section
107 MAX_LINES_TASK = cfg.readNumEntry("maxlinestask",5); 108 MAX_LINES_TASK = cfg.readNumEntry("maxlinestask",5);
108 // after how many chars should the be cut off on tasks and notes 109 // after how many chars should the be cut off on tasks and notes
109 MAX_CHAR_CLIP = cfg.readNumEntry("maxcharclip",30); 110 MAX_CHAR_CLIP = cfg.readNumEntry("maxcharclip",30);