summaryrefslogtreecommitdiff
authorskyhusker <skyhusker>2005-06-14 16:49:23 (UTC)
committer skyhusker <skyhusker>2005-06-14 16:49:23 (UTC)
commit5750c96e17ef0a2a3add50e7a20495e36dc7c4d6 (patch) (unidiff)
tree3f5e978692c4d41ce514c2ceaa3a1d01bc984db2
parent7d8d317205a74bc2e23291ab4909472db6694091 (diff)
downloadopie-5750c96e17ef0a2a3add50e7a20495e36dc7c4d6.zip
opie-5750c96e17ef0a2a3add50e7a20495e36dc7c4d6.tar.gz
opie-5750c96e17ef0a2a3add50e7a20495e36dc7c4d6.tar.bz2
Fix #1635
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
index eb6d47a..781cfcf 100644
--- a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
+++ b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp
@@ -103,33 +103,33 @@ void DatebookPluginWidget::getDates() {
103 QObject::connect ( l, SIGNAL( editEvent(const Event&) ), l, SLOT( editEventSlot(const Event&) ) ); 103 QObject::connect ( l, SIGNAL( editEvent(const Event&) ), l, SLOT( editEventSlot(const Event&) ) );
104 } else { 104 } else {
105 if ( ( QDateTime::currentDateTime() <= (*it).event().end() ) 105 if ( ( QDateTime::currentDateTime() <= (*it).event().end() )
106 // Show events which span over many days and are not elapsed. 106 // Show events which span over many days and are not elapsed.
107 || ( ( (*it).event().start().date() != date ) && ( QDateTime::currentDateTime() <= (*it).event().end() ) ) 107 || ( ( (*it).event().start().date() != date ) && ( QDateTime::currentDateTime() <= (*it).event().end() ) )
108 // Show repeated event for today that is not elapsed. 108 // Show repeated event for today that is not elapsed.
109 || ( ( (*it).event().repeatType() != Event::NoRepeat ) 109 || ( ( (*it).event().repeatType() != Event::NoRepeat )
110 && ( ( date.dayOfWeek() == (*it).date().dayOfWeek() ) 110 && ( ( date.dayOfWeek() == (*it).date().dayOfWeek() )
111 && ( QTime::currentTime() < (*it).event().start().time() ) ) ) 111 && ( QTime::currentTime() < (*it).event().start().time() ) ) )
112 // Show repeated event for next days. 112 // Show repeated event for next days.
113 || ( ( (*it).event().repeatType() != Event::NoRepeat ) 113 || ( ( (*it).event().repeatType() != Event::NoRepeat )
114 && ( date.dayOfWeek() != (*it).date().dayOfWeek() ) ) 114 && ( date.dayOfWeek() != (*it).date().dayOfWeek() ) )
115 ) 115 )
116 { 116 {
117 count++; 117 count++;
118 // show only later appointments 118 // show only later appointments
119 DateBookEvent *l = new DateBookEvent( *it, this, m_show_location, m_show_notes, m_timeExtraLine ); 119 DateBookEvent *l = new DateBookEvent( *it, this, m_show_location, m_show_notes, m_timeExtraLine, m_maxCharClip );
120 m_eventsList.append( l ); 120 m_eventsList.append( l );
121 l->show(); 121 l->show();
122 QObject::connect ( l, SIGNAL( editEvent(const Event&) ), l, SLOT( editEventSlot(const Event&) ) ); 122 QObject::connect ( l, SIGNAL( editEvent(const Event&) ), l, SLOT( editEventSlot(const Event&) ) );
123 } 123 }
124 } 124 }
125 } 125 }
126 } 126 }
127 if ( m_onlyLater && count == 0 ) { 127 if ( m_onlyLater && count == 0 ) {
128 QLabel* noMoreEvents = new QLabel( this ); 128 QLabel* noMoreEvents = new QLabel( this );
129 m_eventsList.append( noMoreEvents ); 129 m_eventsList.append( noMoreEvents );
130 noMoreEvents->show(); 130 noMoreEvents->show();
131 noMoreEvents->setText( QObject::tr( "No more appointments today" ) ); 131 noMoreEvents->setText( QObject::tr( "No more appointments today" ) );
132 } 132 }
133 } else { 133 } else {
134 QLabel* noEvents = new QLabel( this ); 134 QLabel* noEvents = new QLabel( this );
135 m_eventsList.append( noEvents ); 135 m_eventsList.append( noEvents );