summaryrefslogtreecommitdiffabout
path: root/korganizer
Side-by-side diff
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kolistview.cpp7
-rw-r--r--korganizer/mainwindow.cpp13
-rw-r--r--korganizer/mainwindow.h2
3 files changed, 18 insertions, 4 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp
index 5690bdb..5f90dc6 100644
--- a/korganizer/kolistview.cpp
+++ b/korganizer/kolistview.cpp
@@ -70,2 +70,3 @@
extern QPixmap* sgListViewCompletedPix[6];
+extern QPixmap* sgListViewJournalPix;
@@ -165,3 +166,3 @@ bool ListItemVisitor::visit(Todo *t)
} else
- mItem->setSortKey(0,QString::number( t->percentComplete() )+ t->summary().left(10));
+ mItem->setSortKey(0,QString::number( t->percentComplete()+1 )+ t->summary().left(10));
mItem->setPixmap( 0, *(sgListViewCompletedPix[t->percentComplete()/20]));
@@ -227,2 +228,3 @@ bool ListItemVisitor::visit(Journal * j)
QString des;
+ mItem->setPixmap( 0, *sgListViewJournalPix);
if ( !j->summary().isEmpty() ) {
@@ -235,3 +237,4 @@ bool ListItemVisitor::visit(Journal * j)
}
- mItem->setText(0,i18n("Journal: ")+des.left(25));
+ mItem->setText(0,des.left(25));
+ mItem->setSortKey(0,"0"+ des.left(25));
mItem->setText(1,j->dtStartDateStr());
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index e960424..9c2ac82 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -133,2 +133,3 @@ public:
QPixmap* sgListViewCompletedPix[6];
+QPixmap* sgListViewJournalPix;
@@ -145,4 +146,4 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) :
sgListViewCompletedPix[4] = &listviewPix80;
- if ( sgListViewCompletedPix[5]->height() < 5 ) {
//int size = 12;
+ {
sgListViewCompletedPix[5]->resize( 11, 11 );
@@ -162,2 +163,12 @@ MainWindow::MainWindow( QWidget *parent, const char *name ) :
}
+ sgListViewJournalPix = &journalPix;
+ sgListViewJournalPix->resize( 11, 11 );
+ sgListViewJournalPix->fill( Qt::white );
+ {
+ QPainter p ( sgListViewJournalPix );
+ p.drawRect( 0,0,11,11);
+ p.drawLine( 2,3,5,3);
+ p.drawLine( 2,5,8,5);
+ p.drawLine( 2,7,6,7);
+ }
}
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
index adab95d..41d5807 100644
--- a/korganizer/mainwindow.h
+++ b/korganizer/mainwindow.h
@@ -168,3 +168,3 @@ class MainWindow : public QMainWindow
QPixmap loadPixmap( QString );
- QPixmap listviewPix, listviewPix0, listviewPix20, listviewPix40, listviewPix60, listviewPix80;
+ QPixmap listviewPix, listviewPix0, listviewPix20, listviewPix40, listviewPix60, listviewPix80, journalPix;
};