summaryrefslogtreecommitdiffabout
path: root/korganizer/kowhatsnextview.cpp
authorzautrix <zautrix>2004-10-31 17:36:55 (UTC)
committer zautrix <zautrix>2004-10-31 17:36:55 (UTC)
commit7cfdea5dbeda91ed67bfca7b2decff9ef5a66be1 (patch) (side-by-side diff)
tree5ad2e6f91cb66a17c3e46049b71dbb8d632be31a /korganizer/kowhatsnextview.cpp
parent3964a158be731f1bb244ca861262df5fa8d04cf3 (diff)
downloadkdepimpi-7cfdea5dbeda91ed67bfca7b2decff9ef5a66be1.zip
kdepimpi-7cfdea5dbeda91ed67bfca7b2decff9ef5a66be1.tar.gz
kdepimpi-7cfdea5dbeda91ed67bfca7b2decff9ef5a66be1.tar.bz2
kopi wn view fix
Diffstat (limited to 'korganizer/kowhatsnextview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kowhatsnextview.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp
index 8371523..3801ed4 100644
--- a/korganizer/kowhatsnextview.cpp
+++ b/korganizer/kowhatsnextview.cpp
@@ -180,28 +180,29 @@ void KOWhatsNextView::updateView()
bool itemAdded = false;
for ( iii = 0; iii < daysToShow; ++iii ) {
QString date;
itemAdded = false;
events = calendar()->events( mEventDate, true );
if ( iii == 0 ) { // today !!!
todo = todos.first();
while(todo) {
if ( !todo->isCompleted() &&todo->hasDueDate() && todo->dtDue().date() < mEventDate ) {
if ( ! itemAdded ) {
appendDay ( iii, mEventDate );
- itemAdded = true;
+ //itemAdded = true;
- }
- appendEvent(todo);
+ } //bool reply=false, bool notRed = true, bool appendTable = false);
+ appendEvent(todo, false, false, !itemAdded );
+ itemAdded = true;
}
todo = todos.next();
}
}
if (events.count() > 0) {
// mText += "<p></p>";
// kil.loadIcon("month",KIcon::NoGroup,22,KIcon::DefaultState,&ipath);
// mText += "<h2>";
//mText += " <img src=\"";
//mText += ipath;
@@ -223,27 +224,28 @@ void KOWhatsNextView::updateView()
}
ev = events.next();
}
//mText += "</table>\n";
}
todo = todos.first();
while(todo) {
if ( !todo->isCompleted() &&todo->hasDueDate() && todo->dtDue().date() == mEventDate ) {
if ( ! itemAdded ) {
appendDay ( iii, mEventDate );
- itemAdded = true;
+ //itemAdded = true;
}
- appendEvent(todo);
+ appendEvent(todo, false , iii!= 0,!itemAdded);
+ itemAdded = true;
}
todo = todos.next();
}
if ( !itemAdded && iii == 0 ) {
// appendDay ( iii, mEventDate );
//mText += "<table>";
// mText += "<b><font color=\"#000080\"><em>"+i18n("No event, nothing to do.") +"</em></font></b>\n";
mText += "<h3 align=\"center\"><font color=\"#008000\"><em>"+i18n("No event, nothing to do. ") +"</em></font></h3>\n";
//mText +="</table>";
}
if ( itemAdded )
mText += "</table>\n";