Diffstat (limited to 'core/pim/datebook/datebookweeklst.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookweeklst.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp index abaf3ea..de74d46 100644 --- a/core/pim/datebook/datebookweeklst.cpp +++ b/core/pim/datebook/datebookweeklst.cpp | |||
@@ -1,12 +1,13 @@ | |||
1 | #include "namespace_hack.h" | 1 | #include "namespace_hack.h" |
2 | #include "datebookweeklst.h" | 2 | #include "datebookweeklst.h" |
3 | 3 | ||
4 | |||
5 | #include "datebook.h" | 4 | #include "datebook.h" |
6 | 5 | ||
6 | #include <opie2/odebug.h> | ||
7 | |||
7 | #include <qpe/datebookmonth.h> | 8 | #include <qpe/datebookmonth.h> |
8 | #include <qpe/config.h> | 9 | #include <qpe/config.h> |
9 | #include <qpe/resource.h> | 10 | #include <qpe/resource.h> |
10 | 11 | ||
11 | #include <qlayout.h> | 12 | #include <qlayout.h> |
12 | #include <qtoolbutton.h> | 13 | #include <qtoolbutton.h> |
@@ -156,13 +157,13 @@ DateBookWeekLstEvent::DateBookWeekLstEvent(const EffectiveEvent &ev, | |||
156 | const char* name, | 157 | const char* name, |
157 | WFlags fl ) : OClickableLabel(parent,name,fl), event(ev) | 158 | WFlags fl ) : OClickableLabel(parent,name,fl), event(ev) |
158 | { | 159 | { |
159 | // old values... lastday = "__|__", middle=" |---", Firstday="00:00", | 160 | // old values... lastday = "__|__", middle=" |---", Firstday="00:00", |
160 | QString s,start,middle,end,day; | 161 | QString s,start,middle,end,day; |
161 | 162 | ||
162 | qDebug("weeklistviewconfig=%d",weeklistviewconfig); | 163 | Opie::Core::odebug << "weeklistviewconfig=" << weeklistviewconfig << oendl; |
163 | if(weeklistviewconfig==NONE) {// No times displayed. | 164 | if(weeklistviewconfig==NONE) {// No times displayed. |
164 | // start.sprintf("%.2d:%.2d-",ev.start().hour(),ev.start().minute()); | 165 | // start.sprintf("%.2d:%.2d-",ev.start().hour(),ev.start().minute()); |
165 | // middle.sprintf("<--->"); | 166 | // middle.sprintf("<--->"); |
166 | // end.sprintf("-%.2d:%.2d",ev.end().hour(),ev.end().minute()); | 167 | // end.sprintf("-%.2d:%.2d",ev.end().hour(),ev.end().minute()); |
167 | // day.sprintf("%.2d:%.2d-%.2d:%.2d",ev.start().hour(),ev.start().minute(),ev.end().hour(),ev.end().minute()); | 168 | // day.sprintf("%.2d:%.2d-%.2d:%.2d",ev.start().hour(),ev.start().minute(),ev.end().hour(),ev.end().minute()); |
168 | } else if(weeklistviewconfig==NORMAL) {// "Normal", only display start time. | 169 | } else if(weeklistviewconfig==NORMAL) {// "Normal", only display start time. |
@@ -205,13 +206,13 @@ DateBookWeekLstView::DateBookWeekLstView(QValueList<EffectiveEvent> &ev, | |||
205 | const char* name, WFlags fl) | 206 | const char* name, WFlags fl) |
206 | : QWidget( parent, name, fl ) | 207 | : QWidget( parent, name, fl ) |
207 | { | 208 | { |
208 | Config config("DateBook"); | 209 | Config config("DateBook"); |
209 | config.setGroup("Main"); | 210 | config.setGroup("Main"); |
210 | int weeklistviewconfig=config.readNumEntry("weeklistviewconfig", NORMAL); | 211 | int weeklistviewconfig=config.readNumEntry("weeklistviewconfig", NORMAL); |
211 | qDebug("Read weeklistviewconfig: %d",weeklistviewconfig); | 212 | Opie::Core::odebug << "weeklistviewconfig: " << weeklistviewconfig << oendl; |
212 | 213 | ||
213 | bStartOnMonday=onM; | 214 | bStartOnMonday=onM; |
214 | setPalette(white); | 215 | setPalette(white); |
215 | setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding)); | 216 | setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding)); |
216 | 217 | ||
217 | QVBoxLayout *layout = new QVBoxLayout( this ); | 218 | QVBoxLayout *layout = new QVBoxLayout( this ); |