summaryrefslogtreecommitdiff
path: root/core
authorharlekin <harlekin>2002-03-22 09:04:05 (UTC)
committer harlekin <harlekin>2002-03-22 09:04:05 (UTC)
commitd710cacb0ee021274ed5507a76a3cc0ca9a65a4e (patch) (unidiff)
tree68ab43f438062e62acf167ebfc086197af656130 /core
parent23663a914f1b831134d907dfa9f367381718bdc7 (diff)
downloadopie-d710cacb0ee021274ed5507a76a3cc0ca9a65a4e.zip
opie-d710cacb0ee021274ed5507a76a3cc0ca9a65a4e.tar.gz
opie-d710cacb0ee021274ed5507a76a3cc0ca9a65a4e.tar.bz2
bugfixes
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 58ba4f4..aef0a9b 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -73,4 +73,4 @@ Today::Today( QWidget* parent, const char* name, WFlags fl )
73 this, SLOT ( channelReceived(const QCString &, const QByteArray &)) ); 73 this, SLOT ( channelReceived(const QCString &, const QByteArray &)) );
74#endif 74#endif
75#endif 75#endif
76 76
@@ -148,2 +148,3 @@ void Today::draw() {
148 if (checkIfModified()) { 148 if (checkIfModified()) {
149 if (todo) delete todo;
149 todo = new ToDoDB; 150 todo = new ToDoDB;
@@ -151,3 +152,3 @@ void Today::draw() {
151 } 152 }
152 153
153 // how often refresh 154 // how often refresh
@@ -156,3 +157,3 @@ void Today::draw() {
156 157
157/* 158/*
158 * Check if the todolist.xml was modified (if there are new entries. 159 * Check if the todolist.xml was modified (if there are new entries.
@@ -161,7 +162,7 @@ void Today::draw() {
161bool Today::checkIfModified() { 162bool Today::checkIfModified() {
162 163
163 QDir dir; 164 QDir dir;
164 QString homedir = dir.homeDirPath (); 165 QString homedir = dir.homeDirPath ();
165 QString time; 166 QString time;
166 167
167 Config cfg("today"); 168 Config cfg("today");
@@ -176,3 +177,3 @@ bool Today::checkIfModified() {
176 cfg.writeEntry("todolisttimestamp", fileTime.toString() ); 177 cfg.writeEntry("todolisttimestamp", fileTime.toString() );
177 cfg.write(); 178 cfg.write();
178 return true; 179 return true;
@@ -188,9 +189,9 @@ void Today::init() {
188 QString time = (tr( date.toString()) ); 189 QString time = (tr( date.toString()) );
189 190
190 TextLabel1->setText(QString("<font color=#FFFFFF>" + time + "</font>")); 191 TextLabel1->setText(QString("<font color=#FFFFFF>" + time + "</font>"));
191 192
192 // read config 193 // read config
193 Config cfg("today"); 194 Config cfg("today");
194 cfg.setGroup("BaseConfig"); 195 cfg.setGroup("BaseConfig");
195 196
196 // -- config file section -- 197 // -- config file section --
@@ -204,3 +205,3 @@ void Today::init() {
204 SHOW_LOCATION = cfg.readNumEntry("showlocation",1); 205 SHOW_LOCATION = cfg.readNumEntry("showlocation",1);
205 // if notes should be shown 206 // if notes should be shown
206 SHOW_NOTES = cfg.readNumEntry("shownotes",0); 207 SHOW_NOTES = cfg.readNumEntry("shownotes",0);
@@ -270,3 +271,3 @@ void Today::getDates() {
270 QDate date = QDate::currentDate(); 271 QDate date = QDate::currentDate();
271 272
272 if (AllDateBookEvents) delete AllDateBookEvents; 273 if (AllDateBookEvents) delete AllDateBookEvents;