-rw-r--r-- | bin/kdepim/WhatsNew.txt | 2 | ||||
-rw-r--r-- | korganizer/kotodoview.cpp | 21 | ||||
-rw-r--r-- | korganizer/kotodoview.h | 1 |
3 files changed, 16 insertions, 8 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 7214035..14dcdac 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -14,12 +14,14 @@ Made the week-month mode changing in month view faster. | |||
14 | 14 | ||
15 | Made month view better useable with keyboard. | 15 | Made month view better useable with keyboard. |
16 | Now TAB key jumps to next cell with an event/todo. | 16 | Now TAB key jumps to next cell with an event/todo. |
17 | Scroll in cell with coursor keys, scroll in time (next week) with | 17 | Scroll in cell with coursor keys, scroll in time (next week) with |
18 | Shift/Control + coursorkeys. | 18 | Shift/Control + coursorkeys. |
19 | 19 | ||
20 | Fixeg bug that the todo view flat mode was reset after first view update. | ||
21 | |||
20 | ********** VERSION 2.0.2 ************ | 22 | ********** VERSION 2.0.2 ************ |
21 | 23 | ||
22 | KO/Pi: | 24 | KO/Pi: |
23 | Fixed the layout problem of the day label buttons | 25 | Fixed the layout problem of the day label buttons |
24 | of the agenda view introduced in version 2.0.1. | 26 | of the agenda view introduced in version 2.0.1. |
25 | 27 | ||
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 03a8f1c..1a1bce5 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp | |||
@@ -593,13 +593,13 @@ void KOTodoView::updateView() | |||
593 | if ( !isVisible() ) { | 593 | if ( !isVisible() ) { |
594 | mPendingUpdateBeforeRepaint = true; | 594 | mPendingUpdateBeforeRepaint = true; |
595 | return; | 595 | return; |
596 | } | 596 | } |
597 | //qDebug("KOTodoView::updateView() %x", this); | 597 | //qDebug("KOTodoView::updateView() %x", this); |
598 | if ( isFlatDisplay ) { | 598 | if ( isFlatDisplay ) { |
599 | setAllFlat(); | 599 | displayAllFlat(); |
600 | return; | 600 | return; |
601 | } | 601 | } |
602 | //qDebug("update "); | 602 | //qDebug("update "); |
603 | // kdDebug() << "KOTodoView::updateView()" << endl; | 603 | // kdDebug() << "KOTodoView::updateView()" << endl; |
604 | QFont fo = KOPrefs::instance()->mTodoViewFont; | 604 | QFont fo = KOPrefs::instance()->mTodoViewFont; |
605 | mTodoListView->clear(); | 605 | mTodoListView->clear(); |
@@ -1120,20 +1120,14 @@ void KOTodoView::setOpen( QListViewItem* item, bool setOpenI) | |||
1120 | setOpen( item->firstChild(), setOpenI ); | 1120 | setOpen( item->firstChild(), setOpenI ); |
1121 | item->setOpen( setOpenI ); | 1121 | item->setOpen( setOpenI ); |
1122 | item = item->nextSibling(); | 1122 | item = item->nextSibling(); |
1123 | } | 1123 | } |
1124 | } | 1124 | } |
1125 | 1125 | ||
1126 | void KOTodoView::setAllFlat() | 1126 | void KOTodoView::displayAllFlat() |
1127 | { | 1127 | { |
1128 | if ( isFlatDisplay ) { | ||
1129 | isFlatDisplay = false; | ||
1130 | mPopupMenu->setItemChecked( 8,false ); | ||
1131 | updateView(); | ||
1132 | return; | ||
1133 | } | ||
1134 | pendingSubtodo = 0; | 1128 | pendingSubtodo = 0; |
1135 | if ( mBlockUpdate ) { | 1129 | if ( mBlockUpdate ) { |
1136 | return; | 1130 | return; |
1137 | } | 1131 | } |
1138 | mPopupMenu->setItemChecked( 8,true ); | 1132 | mPopupMenu->setItemChecked( 8,true ); |
1139 | isFlatDisplay = true; | 1133 | isFlatDisplay = true; |
@@ -1146,12 +1140,23 @@ void KOTodoView::setAllFlat() | |||
1146 | mTodoMap.insert(todo,todoItem); | 1140 | mTodoMap.insert(todo,todoItem); |
1147 | } | 1141 | } |
1148 | mTodoListView->setFocus(); | 1142 | mTodoListView->setFocus(); |
1149 | processSelectionChange(); | 1143 | processSelectionChange(); |
1150 | } | 1144 | } |
1151 | 1145 | ||
1146 | void KOTodoView::setAllFlat() | ||
1147 | { | ||
1148 | if ( isFlatDisplay ) { | ||
1149 | isFlatDisplay = false; | ||
1150 | mPopupMenu->setItemChecked( 8,false ); | ||
1151 | updateView(); | ||
1152 | return; | ||
1153 | } | ||
1154 | displayAllFlat(); | ||
1155 | } | ||
1156 | |||
1152 | void KOTodoView::purgeCompleted() | 1157 | void KOTodoView::purgeCompleted() |
1153 | { | 1158 | { |
1154 | emit purgeCompletedSignal(); | 1159 | emit purgeCompletedSignal(); |
1155 | } | 1160 | } |
1156 | void KOTodoView::toggleQuickTodo() | 1161 | void KOTodoView::toggleQuickTodo() |
1157 | { | 1162 | { |
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h index 1642132..462f0a6 100644 --- a/korganizer/kotodoview.h +++ b/korganizer/kotodoview.h | |||
@@ -167,12 +167,13 @@ class KOTodoView : public KOrg::BaseView | |||
167 | void setNewPercentage(int); | 167 | void setNewPercentage(int); |
168 | void changedCategories(int); | 168 | void changedCategories(int); |
169 | 169 | ||
170 | void setAllOpen(); | 170 | void setAllOpen(); |
171 | void setAllClose(); | 171 | void setAllClose(); |
172 | void setAllFlat(); | 172 | void setAllFlat(); |
173 | void displayAllFlat(); | ||
173 | 174 | ||
174 | void purgeCompleted(); | 175 | void purgeCompleted(); |
175 | void toggleCompleted(); | 176 | void toggleCompleted(); |
176 | void toggleRunning(); | 177 | void toggleRunning(); |
177 | void toggleQuickTodo(); | 178 | void toggleQuickTodo(); |
178 | void updateTodo( Todo *, int ); | 179 | void updateTodo( Todo *, int ); |