Diffstat (limited to 'core/pim/today/plugins/datebook/datebookevent.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/datebook/datebookevent.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/pim/today/plugins/datebook/datebookevent.cpp b/core/pim/today/plugins/datebook/datebookevent.cpp index e19a690..9a820f2 100644 --- a/core/pim/today/plugins/datebook/datebookevent.cpp +++ b/core/pim/today/plugins/datebook/datebookevent.cpp | |||
@@ -1,46 +1,47 @@ | |||
1 | /* | 1 | /* |
2 | * datebookevent.cpp | 2 | * datebookevent.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2002, 2003 by Maximilian Reiß | 4 | * copyright : (c) 2002, 2003, 2004 by Maximilian Reiß |
5 | * email : harlekin@handhelds.org | 5 | * email : harlekin@handhelds.org |
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | /*************************************************************************** | 8 | /*************************************************************************** |
9 | * * | 9 | * * |
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #include "datebookevent.h" | 17 | #include "datebookevent.h" |
18 | |||
18 | #include <qpe/config.h> | 19 | #include <qpe/config.h> |
19 | #include <qpe/qcopenvelope_qws.h> | 20 | #include <qpe/qcopenvelope_qws.h> |
20 | #include <qpe/calendar.h> | 21 | #include <qpe/calendar.h> |
21 | 22 | ||
22 | #include <opie/odevice.h> | 23 | #include <opie2/odevice.h> |
23 | 24 | ||
24 | using namespace Opie; | 25 | using namespace Opie; |
25 | 26 | ||
26 | DateBookEvent::DateBookEvent(const EffectiveEvent &ev, | 27 | DateBookEvent::DateBookEvent(const EffectiveEvent &ev, |
27 | QWidget* parent, | 28 | QWidget* parent, |
28 | bool show_location, | 29 | bool show_location, |
29 | bool show_notes, | 30 | bool show_notes, |
30 | bool timeExtraLine, | 31 | bool timeExtraLine, |
31 | int maxCharClip, | 32 | int maxCharClip, |
32 | const char* name, | 33 | const char* name, |
33 | WFlags fl) : | 34 | WFlags fl) : |
34 | OClickableLabel(parent,name,fl), event(ev) { | 35 | OClickableLabel(parent,name,fl), event(ev) { |
35 | 36 | ||
36 | // setAlignment( AlignTop ); | 37 | // setAlignment( AlignTop ); |
37 | 38 | ||
38 | QString msg; | 39 | QString msg; |
39 | 40 | ||
40 | Config config( "qpe" ); | 41 | Config config( "qpe" ); |
41 | config.setGroup( "Time" ); | 42 | config.setGroup( "Time" ); |
42 | // if 24 h format | 43 | // if 24 h format |
43 | ampm = config.readBoolEntry( "AMPM", TRUE ); | 44 | ampm = config.readBoolEntry( "AMPM", TRUE ); |
44 | 45 | ||
45 | msg += "<B>" + (ev).description() + "</B>"; | 46 | msg += "<B>" + (ev).description() + "</B>"; |
46 | if ( (ev).event().hasAlarm() ) { | 47 | if ( (ev).event().hasAlarm() ) { |