[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/korganizer
From: Bram Schoenmakers <bram_s () hccnet ! nl>
Date: 2004-05-17 23:18:18
Message-ID: 20040517231818.6E5269094 () office ! kde ! org
[Download RAW message or body]
CVS commit by bram:
Made sorting on alarm and recurrence possible in listview.
M +14 -2 kolistview.cpp 1.74
--- kdepim/korganizer/kolistview.cpp #1.73:1.74
@@ -86,10 +86,16 @@ bool ListItemVisitor::visit(Event *e)
static const QPixmap alarmPxmp = KOGlobals::self()->smallIcon("bell");
mItem->setPixmap(1,alarmPxmp);
+ mItem->setSortKey(1,"1");
}
+ else
+ mItem->setSortKey(1,"0");
if ( e->doesRecur() ) {
static const QPixmap recurPxmp = KOGlobals::self()->smallIcon("recur");
mItem->setPixmap(2,recurPxmp);
+ mItem->setSortKey(2,"1");
}
+ else
+ mItem->setSortKey(2,"0");
mItem->setText( 3,e->dtStartDateStr());
@@ -102,8 +108,8 @@ bool ListItemVisitor::visit(Event *e)
QString key = e->dtStart().toString(Qt::ISODate);
- mItem->setSortKey(1,key);
+ mItem->setSortKey(3,key);
key = e->dtEnd().toString(Qt::ISODate);
- mItem->setSortKey(3,key);
+ mItem->setSortKey(5,key);
return true;
@@ -118,10 +124,16 @@ bool ListItemVisitor::visit(Todo *t)
static const QPixmap alarmPxmp = KOGlobals::self()->smallIcon("bell");
mItem->setPixmap(1,alarmPxmp);
+ mItem->setSortKey(1, "1");
}
+ else
+ mItem->setSortKey(1, "0");
if ( t->doesRecur() ) {
static const QPixmap recurPxmp = KOGlobals::self()->smallIcon("recur");
mItem->setPixmap(2,recurPxmp);
+ mItem->setSortKey(2, "1");
}
+ else
+ mItem->setSortKey(2, "0");
if (t->hasStartDate()) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic