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 | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/core/pim/today/plugins/datebook/datebookevent.cpp b/core/pim/today/plugins/datebook/datebookevent.cpp index d4e8e1e..c37813b 100644 --- a/core/pim/today/plugins/datebook/datebookevent.cpp +++ b/core/pim/today/plugins/datebook/datebookevent.cpp | |||
@@ -24,5 +24,4 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev, | |||
24 | QWidget* parent, | 24 | QWidget* parent, |
25 | int show_location, | 25 | bool show_location, |
26 | int show_notes, | 26 | bool show_notes, |
27 | // int onlyLater, | ||
28 | int maxCharClip, | 27 | int maxCharClip, |
@@ -47,3 +46,3 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev, | |||
47 | // include location or not | 46 | // include location or not |
48 | if ( show_location == 1) { | 47 | if ( show_location ) { |
49 | msg += "<BR><i>" + (ev).location() + "</i>"; | 48 | msg += "<BR><i>" + (ev).location() + "</i>"; |
@@ -52,3 +51,3 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev, | |||
52 | if ( ( TimeString::timeString( QTime( (ev).event().start().time() ) ) == "00:00" ) | 51 | if ( ( TimeString::timeString( QTime( (ev).event().start().time() ) ) == "00:00" ) |
53 | && ( TimeString::timeString( QTime( (ev).event().end().time() ) ) == "23:59") ) { | 52 | && ( TimeString::timeString( QTime( (ev).event().end().time() ) ) == "23:59" ) ) { |
54 | msg += "<br>All day"; | 53 | msg += "<br>All day"; |
@@ -62,3 +61,3 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev, | |||
62 | // include possible note or not | 61 | // include possible note or not |
63 | if ( show_notes == 1) { | 62 | if ( show_notes ) { |
64 | msg += "<br> <i>note</i>:" +( (ev).notes() ).mid( 0, maxCharClip ); | 63 | msg += "<br> <i>note</i>:" +( (ev).notes() ).mid( 0, maxCharClip ); |
@@ -68,3 +67,3 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev, | |||
68 | connect( this, SIGNAL( clicked() ), this, SLOT( editMe() ) ); | 67 | connect( this, SIGNAL( clicked() ), this, SLOT( editMe() ) ); |
69 | setAlignment( int( QLabel::WordBreak | QLabel::AlignLeft ) ); | 68 | // setAlignment( int( QLabel::WordBreak | QLabel::AlignLeft ) ); |
70 | } | 69 | } |
@@ -72,2 +71,7 @@ DateBookEvent::DateBookEvent(const EffectiveEvent &ev, | |||
72 | 71 | ||
72 | /** | ||
73 | * AM/PM timestring conversion. | ||
74 | * @param tm the timestring | ||
75 | * @return formatted to am/pm is system is set to it | ||
76 | */ | ||
73 | QString DateBookEvent::ampmTime( QTime tm ) { | 77 | QString DateBookEvent::ampmTime( QTime tm ) { |
@@ -94,3 +98,3 @@ QString DateBookEvent::ampmTime( QTime tm ) { | |||
94 | 98 | ||
95 | /* | 99 | /** |
96 | * starts the edit dialog as known from datebook | 100 | * starts the edit dialog as known from datebook |
@@ -110,4 +114,4 @@ void DateBookEvent::editEventSlot( const Event &e ) { | |||
110 | void DateBookEvent::startDatebook() { | 114 | void DateBookEvent::startDatebook() { |
111 | QCopEnvelope e("QPE/System", "execute(QString)"); | 115 | QCopEnvelope e( "QPE/System", "execute(QString)" ); |
112 | e << QString("datebook"); | 116 | e << QString( "datebook" ); |
113 | } | 117 | } |
@@ -115,3 +119,3 @@ void DateBookEvent::startDatebook() { | |||
115 | void DateBookEvent::editMe() { | 119 | void DateBookEvent::editMe() { |
116 | emit editEvent(event.event()); | 120 | emit editEvent( event.event() ); |
117 | } | 121 | } |