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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/today/plugins/datebook/datebookevent.cpp b/core/pim/today/plugins/datebook/datebookevent.cpp index 1caf061..d4e8e1e 100644 --- a/core/pim/today/plugins/datebook/datebookevent.cpp +++ b/core/pim/today/plugins/datebook/datebookevent.cpp @@ -21,24 +21,26 @@ #include <qpe/qpeapplication.h> DateBookEvent::DateBookEvent(const EffectiveEvent &ev, QWidget* parent, int show_location, int show_notes, // int onlyLater, int maxCharClip, const char* name, WFlags fl) : OClickableLabel(parent,name,fl), event(ev) { + setAlignment( AlignTop ); + QString msg; Config config( "qpe" ); config.setGroup( "Time" ); // if 24 h format ampm = config.readBoolEntry( "AMPM", TRUE ); msg += "<B>" + (ev).description() + "</B>"; if ( (ev).event().hasAlarm() ) { msg += " <b>[with alarm]</b>"; } @@ -81,26 +83,24 @@ QString DateBookEvent::ampmTime( QTime tm ) { } s.sprintf( "%2d:%02d %s", hour, tm.minute(), (tm.hour() >= 12) ? "PM" : "AM" ); return s; } else { s.sprintf( "%2d:%02d", tm.hour(), tm.minute() ); return s; } } -//extern QPEApplication *todayApp; - /* * starts the edit dialog as known from datebook */ void DateBookEvent::editEventSlot( const Event &e ) { startDatebook(); while( !QCopChannel::isRegistered( "QPE/Datebook" ) ) qApp->processEvents(); QCopEnvelope env( "QPE/Datebook", "editEvent(int)" ); env << e.uid(); } |