-rw-r--r-- | korganizer/kotodoview.cpp | 15 |
1 files changed, 5 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 @@ -419,43 +419,38 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : mTodoListView->addColumn(i18n("Due Date")); mTodoListView->setColumnAlignment(3,AlignLeft); mTodoListView->addColumn(i18n("Due Time")); mTodoListView->setColumnAlignment(4,AlignHCenter); mTodoListView->addColumn(i18n("Start Date")); mTodoListView->setColumnAlignment(5,AlignLeft); mTodoListView->addColumn(i18n("Start Time")); 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 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); for (int i = 1; i <= 5; i++) { QString label = QString ("%1").arg (i); mPriority[mPriorityPopupMenu->insertItem (label)] = i; } connect (mPriorityPopupMenu, SIGNAL(activated (int)), SLOT (setNewPriority(int))); mPercentageCompletedPopupMenu = new QPopupMenu(this); for (int i = 0; i <= 100; i+=20) { |