author | bipolar <bipolar> | 2002-03-08 03:17:37 (UTC) |
---|---|---|
committer | bipolar <bipolar> | 2002-03-08 03:17:37 (UTC) |
commit | 5bb6c01c2a9a40e5bff20a2725f6aacf85d16ef3 (patch) (unidiff) | |
tree | 4d40fb06ae37c1420723529e5f75bb7c41ae8c00 | |
parent | 11b56113b6641e0b85c6015eafab802dd7663198 (diff) | |
download | opie-5bb6c01c2a9a40e5bff20a2725f6aacf85d16ef3.zip opie-5bb6c01c2a9a40e5bff20a2725f6aacf85d16ef3.tar.gz opie-5bb6c01c2a9a40e5bff20a2725f6aacf85d16ef3.tar.bz2 |
ljp: fixed QString problem
-rw-r--r-- | core/pim/today/today.cpp | 3 |
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 | ||
86 | void Today::draw() { | 86 | void 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 | ||
95 | void Today::init() { | 95 | void 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); |