author | zautrix <zautrix> | 2005-06-15 21:00:30 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-15 21:00:30 (UTC) |
commit | 4a9b5ad578e991f6216dc0556022a76223165f15 (patch) (unidiff) | |
tree | 41017358760a4db4b47e38a0364c219ed4760411 | |
parent | e74483434835ad799b1a6880ae4576aacb14624a (diff) | |
download | kdepimpi-4a9b5ad578e991f6216dc0556022a76223165f15.zip kdepimpi-4a9b5ad578e991f6216dc0556022a76223165f15.tar.gz kdepimpi-4a9b5ad578e991f6216dc0556022a76223165f15.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/kotodoview.cpp | 15 | ||||
-rw-r--r-- | korganizer/kotodoviewitem.cpp | 1 |
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 | |||
@@ -423,35 +423,30 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : | |||
423 | 423 | ||
424 | mTodoListView->addColumn(i18n("Start Date")); | 424 | mTodoListView->addColumn(i18n("Start Date")); |
425 | mTodoListView->setColumnAlignment(5,AlignLeft); | 425 | mTodoListView->setColumnAlignment(5,AlignLeft); |
426 | mTodoListView->addColumn(i18n("Start Time")); | 426 | mTodoListView->addColumn(i18n("Start Time")); |
427 | mTodoListView->setColumnAlignment(6,AlignHCenter); | 427 | mTodoListView->setColumnAlignment(6,AlignHCenter); |
428 | 428 | ||
429 | mTodoListView->addColumn(i18n("Cancelled")); | 429 | mTodoListView->addColumn(i18n("Cancelled")); |
430 | mTodoListView->addColumn(i18n("Categories")); | 430 | mTodoListView->addColumn(i18n("Categories")); |
431 | mTodoListView->addColumn(i18n("Calendar")); | ||
431 | #if 0 | 432 | #if 0 |
432 | mTodoListView->addColumn(i18n("Sort Id")); | 433 | mTodoListView->addColumn(i18n("Sort Id")); |
433 | mTodoListView->setColumnAlignment(4,AlignHCenter); | 434 | mTodoListView->setColumnAlignment(4,AlignHCenter); |
434 | #endif | 435 | #endif |
435 | 436 | ||
436 | mTodoListView->setMinimumHeight( 60 ); | 437 | mTodoListView->setMinimumHeight( 60 ); |
437 | mTodoListView->setItemsRenameable( true ); | 438 | mTodoListView->setItemsRenameable( true ); |
438 | mTodoListView->setRenameable( 0 ); | 439 | mTodoListView->setRenameable( 0 ); |
439 | mTodoListView->setColumnWidth( 0, 120 ); | 440 | mTodoListView->setColumnWidth( 0, 120 ); |
440 | mTodoListView->setColumnWidthMode(0, QListView::Manual); | 441 | int iii = 0; |
441 | mTodoListView->setColumnWidthMode(1, QListView::Manual); | 442 | for ( iii = 0; iii< 10 ; ++iii ) |
442 | mTodoListView->setColumnWidthMode(2, QListView::Manual); | 443 | mTodoListView->setColumnWidthMode( iii, QListView::Manual ); |
443 | mTodoListView->setColumnWidthMode(3, QListView::Manual); | 444 | |
444 | mTodoListView->setColumnWidthMode(4, QListView::Manual); | ||
445 | mTodoListView->setColumnWidthMode(5, QListView::Manual); | ||
446 | mTodoListView->setColumnWidthMode(6, QListView::Manual); | ||
447 | mTodoListView->setColumnWidthMode(7, QListView::Manual); | ||
448 | mTodoListView->setColumnWidthMode(8, QListView::Manual); | ||
449 | |||
450 | 445 | ||
451 | mKOTodoViewWhatsThis = new KOTodoViewWhatsThis(mTodoListView->viewport(),this); | 446 | mKOTodoViewWhatsThis = new KOTodoViewWhatsThis(mTodoListView->viewport(),this); |
452 | 447 | ||
453 | mPriorityPopupMenu = new QPopupMenu(this); | 448 | mPriorityPopupMenu = new QPopupMenu(this); |
454 | for (int i = 1; i <= 5; i++) { | 449 | for (int i = 1; i <= 5; i++) { |
455 | QString label = QString ("%1").arg (i); | 450 | QString label = QString ("%1").arg (i); |
456 | mPriority[mPriorityPopupMenu->insertItem (label)] = i; | 451 | mPriority[mPriorityPopupMenu->insertItem (label)] = i; |
457 | } | 452 | } |
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp index 748f3e4..f62aab8 100644 --- a/korganizer/kotodoviewitem.cpp +++ b/korganizer/kotodoviewitem.cpp | |||
@@ -150,16 +150,17 @@ void KOTodoViewItem::construct() | |||
150 | } | 150 | } |
151 | setText(5,keyd); | 151 | setText(5,keyd); |
152 | setText(6,keyt); | 152 | setText(6,keyt); |
153 | setSortKey(5,skeyd); | 153 | setSortKey(5,skeyd); |
154 | setSortKey(6,skeyt); | 154 | setSortKey(6,skeyt); |
155 | 155 | ||
156 | setText(7,mTodo->cancelled() ? i18n("Yes") : i18n("No")); | 156 | setText(7,mTodo->cancelled() ? i18n("Yes") : i18n("No")); |
157 | setText(8,mTodo->categoriesStr()); | 157 | setText(8,mTodo->categoriesStr()); |
158 | setText(9,KOPrefs::instance()->calName( mTodo->calID())); | ||
158 | 159 | ||
159 | #if 0 | 160 | #if 0 |
160 | // Find sort id in description. It's the text behind the last '#' character | 161 | // Find sort id in description. It's the text behind the last '#' character |
161 | // found in the description. White spaces are removed from beginning and end | 162 | // found in the description. White spaces are removed from beginning and end |
162 | // of sort id. | 163 | // of sort id. |
163 | int pos = mTodo->description().findRev('#'); | 164 | int pos = mTodo->description().findRev('#'); |
164 | if (pos < 0) { | 165 | if (pos < 0) { |
165 | setText(6,""); | 166 | setText(6,""); |