summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kotodoview.cpp15
-rw-r--r--korganizer/kotodoviewitem.cpp1
2 files changed, 6 insertions, 10 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index 35c2a9f..b2ff33b 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -427,8 +427,9 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
mTodoListView->setColumnAlignment(6,AlignHCenter);
mTodoListView->addColumn(i18n("Cancelled"));
mTodoListView->addColumn(i18n("Categories"));
+ mTodoListView->addColumn(i18n("Calendar"));
#if 0
mTodoListView->addColumn(i18n("Sort Id"));
mTodoListView->setColumnAlignment(4,AlignHCenter);
#endif
@@ -436,18 +437,12 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
mTodoListView->setMinimumHeight( 60 );
mTodoListView->setItemsRenameable( true );
mTodoListView->setRenameable( 0 );
mTodoListView->setColumnWidth( 0, 120 );
- mTodoListView->setColumnWidthMode(0, QListView::Manual);
- mTodoListView->setColumnWidthMode(1, QListView::Manual);
- mTodoListView->setColumnWidthMode(2, QListView::Manual);
- mTodoListView->setColumnWidthMode(3, QListView::Manual);
- mTodoListView->setColumnWidthMode(4, QListView::Manual);
- mTodoListView->setColumnWidthMode(5, QListView::Manual);
- mTodoListView->setColumnWidthMode(6, QListView::Manual);
- mTodoListView->setColumnWidthMode(7, QListView::Manual);
- mTodoListView->setColumnWidthMode(8, QListView::Manual);
-
+ int iii = 0;
+ for ( iii = 0; iii< 10 ; ++iii )
+ mTodoListView->setColumnWidthMode( iii, QListView::Manual );
+
mKOTodoViewWhatsThis = new KOTodoViewWhatsThis(mTodoListView->viewport(),this);
mPriorityPopupMenu = new QPopupMenu(this);
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp
index 748f3e4..f62aab8 100644
--- a/korganizer/kotodoviewitem.cpp
+++ b/korganizer/kotodoviewitem.cpp
@@ -154,8 +154,9 @@ void KOTodoViewItem::construct()
setSortKey(6,skeyt);
setText(7,mTodo->cancelled() ? i18n("Yes") : i18n("No"));
setText(8,mTodo->categoriesStr());
+ setText(9,KOPrefs::instance()->calName( mTodo->calID()));
#if 0
// Find sort id in description. It's the text behind the last '#' character
// found in the description. White spaces are removed from beginning and end