author | zautrix <zautrix> | 2005-06-18 09:21:06 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-18 09:21:06 (UTC) |
commit | 252c62bffc34f2c71002c71abea480807fa1455a (patch) (unidiff) | |
tree | ed84520d75b534bb6013fc45fdb93f1a39e6e2e0 /korganizer | |
parent | 39112dfe29d2108d54d37f25dc57dcd9299f1f93 (diff) | |
download | kdepimpi-252c62bffc34f2c71002c71abea480807fa1455a.zip kdepimpi-252c62bffc34f2c71002c71abea480807fa1455a.tar.gz kdepimpi-252c62bffc34f2c71002c71abea480807fa1455a.tar.bz2 |
fixx
-rw-r--r-- | korganizer/kolistview.cpp | 11 | ||||
-rw-r--r-- | korganizer/kolistview.h | 2 | ||||
-rw-r--r-- | korganizer/searchdialog.cpp | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index 0b2f9a4..22d9ac0 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -249,2 +249,3 @@ KOListView::KOListView(Calendar *calendar, QWidget *parent, | |||
249 | mActiveItem = 0; | 249 | mActiveItem = 0; |
250 | mForceShowCompletedTodos = false; | ||
250 | mListView = new KOListViewListView(this); | 251 | mListView = new KOListViewListView(this); |
@@ -1049,2 +1050,6 @@ void KOListView::addJournals(QPtrList<Journal> eventList) | |||
1049 | 1050 | ||
1051 | void KOListView::showCompletedTodos() | ||
1052 | { | ||
1053 | mForceShowCompletedTodos = true; | ||
1054 | } | ||
1050 | void KOListView::addIncidence(Incidence *incidence) | 1055 | void KOListView::addIncidence(Incidence *incidence) |
@@ -1054,2 +1059,8 @@ void KOListView::addIncidence(Incidence *incidence) | |||
1054 | // mListView->setFont ( KOPrefs::instance()->mListViewFont ); | 1059 | // mListView->setFont ( KOPrefs::instance()->mListViewFont ); |
1060 | if ( incidence->typeID() == todoID ) { | ||
1061 | if ( ! mForceShowCompletedTodos ) { | ||
1062 | if ( !KOPrefs::instance()->mShowCompletedTodo && ((Todo*)incidence)->isCompleted() ) | ||
1063 | return; | ||
1064 | } | ||
1065 | } | ||
1055 | mUidDict.insert( incidence->uid(), incidence ); | 1066 | mUidDict.insert( incidence->uid(), incidence ); |
diff --git a/korganizer/kolistview.h b/korganizer/kolistview.h index d384af0..bcef0f0 100644 --- a/korganizer/kolistview.h +++ b/korganizer/kolistview.h | |||
@@ -265,2 +265,3 @@ class KOListView : public KOEventView | |||
265 | QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents = true, bool includeTodos = true , bool includeJournals = true, bool onlyDueTodos = false ); | 265 | QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents = true, bool includeTodos = true , bool includeJournals = true, bool onlyDueTodos = false ); |
266 | void showCompletedTodos(); | ||
266 | signals: | 267 | signals: |
@@ -310,2 +311,3 @@ class KOListView : public KOEventView | |||
310 | private: | 311 | private: |
312 | bool mForceShowCompletedTodos; | ||
311 | QPopupMenu* mCalPopup; | 313 | QPopupMenu* mCalPopup; |
diff --git a/korganizer/searchdialog.cpp b/korganizer/searchdialog.cpp index bba49f0..a8de297 100644 --- a/korganizer/searchdialog.cpp +++ b/korganizer/searchdialog.cpp | |||
@@ -140,2 +140,3 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent) | |||
140 | layout->addWidget(listView); | 140 | layout->addWidget(listView); |
141 | listView->showCompletedTodos(); | ||
141 | //layout->setStretchFactor( listView, 333 ); | 142 | //layout->setStretchFactor( listView, 333 ); |