author | zautrix <zautrix> | 2005-06-18 20:16:48 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-18 20:16:48 (UTC) |
commit | a2e963324e6db541f322002c307b40f24747e036 (patch) (unidiff) | |
tree | 5b09ee8c176e0709bb48bd2446fe90d2f3d90c68 /korganizer | |
parent | 15e5fcb111968950032089219185ae4322e88f06 (diff) | |
download | kdepimpi-a2e963324e6db541f322002c307b40f24747e036.zip kdepimpi-a2e963324e6db541f322002c307b40f24747e036.tar.gz kdepimpi-a2e963324e6db541f322002c307b40f24747e036.tar.bz2 |
filter change update fix
-rw-r--r-- | korganizer/calendarview.cpp | 3 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index d25f632..08909ed 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -4014,13 +4014,12 @@ QPtrList<CalFilter> CalendarView::filters() | |||
4014 | void CalendarView::editFilters() | 4014 | void CalendarView::editFilters() |
4015 | { | 4015 | { |
4016 | // kdDebug() << "CalendarView::editFilters()" << endl; | 4016 | // kdDebug() << "CalendarView::editFilters()" << endl; |
4017 | 4017 | ||
4018 | CalFilter *filter = mFilters.first(); | 4018 | CalFilter *filter = mFilters.first(); |
4019 | while(filter) { | 4019 | while(filter) { |
4020 | kdDebug() << " Filter: " << filter->name() << endl; | ||
4021 | filter = mFilters.next(); | 4020 | filter = mFilters.next(); |
4022 | } | 4021 | } |
4023 | 4022 | ||
4024 | mDialogManager->showFilterEditDialog(&mFilters); | 4023 | mDialogManager->showFilterEditDialog(&mFilters); |
4025 | updateFilter(); | 4024 | updateFilter(); |
4026 | } | 4025 | } |
@@ -4037,12 +4036,13 @@ KOFilterView *CalendarView::filterView() | |||
4037 | { | 4036 | { |
4038 | return mFilterView; | 4037 | return mFilterView; |
4039 | } | 4038 | } |
4040 | void CalendarView::selectFilter( int fil ) | 4039 | void CalendarView::selectFilter( int fil ) |
4041 | { | 4040 | { |
4042 | mFilterView->setSelectedFilter( fil ); | 4041 | mFilterView->setSelectedFilter( fil ); |
4042 | updateUnmanagedViews(); | ||
4043 | } | 4043 | } |
4044 | void CalendarView::showFilter(bool visible) | 4044 | void CalendarView::showFilter(bool visible) |
4045 | { | 4045 | { |
4046 | #if 1 | 4046 | #if 1 |
4047 | if (visible) { | 4047 | if (visible) { |
4048 | mCalEditView->readConfig(); | 4048 | mCalEditView->readConfig(); |
@@ -4077,12 +4077,13 @@ void CalendarView::showFilter(bool visible) | |||
4077 | } | 4077 | } |
4078 | void CalendarView::toggleFilerEnabled( ) | 4078 | void CalendarView::toggleFilerEnabled( ) |
4079 | { | 4079 | { |
4080 | mFilterView->setFiltersEnabled ( !mFilterView->filtersEnabled() ); | 4080 | mFilterView->setFiltersEnabled ( !mFilterView->filtersEnabled() ); |
4081 | if ( !mFilterView->filtersEnabled() ) | 4081 | if ( !mFilterView->filtersEnabled() ) |
4082 | topLevelWidget()->setCaption( i18n("Filter disabled ") ); | 4082 | topLevelWidget()->setCaption( i18n("Filter disabled ") ); |
4083 | updateUnmanagedViews(); | ||
4083 | 4084 | ||
4084 | } | 4085 | } |
4085 | void CalendarView::updateFilter() | 4086 | void CalendarView::updateFilter() |
4086 | { | 4087 | { |
4087 | CalFilter *filter = mFilterView->selectedFilter(); | 4088 | CalFilter *filter = mFilterView->selectedFilter(); |
4088 | if (filter) { | 4089 | if (filter) { |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 0367bea..48320a5 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -2082,13 +2082,13 @@ void MainWindow::keyPressEvent ( QKeyEvent * e ) | |||
2082 | 2082 | ||
2083 | 2083 | ||
2084 | default: | 2084 | default: |
2085 | e->ignore(); | 2085 | e->ignore(); |
2086 | } | 2086 | } |
2087 | if ( pro > 0 ) { | 2087 | if ( pro > 0 ) { |
2088 | mView->selectFilter( pro-1 ); | 2088 | selectFilter( pro+1 ); |
2089 | } | 2089 | } |
2090 | if ( showSelectedDates ) { | 2090 | if ( showSelectedDates ) { |
2091 | ;// setCaptionToDates(); | 2091 | ;// setCaptionToDates(); |
2092 | } | 2092 | } |
2093 | 2093 | ||
2094 | } | 2094 | } |