author | zautrix <zautrix> | 2005-01-19 08:52:01 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-19 08:52:01 (UTC) |
commit | af56077eeeab7b46b98ad5159c6653114abf6602 (patch) (side-by-side diff) | |
tree | b621bc3c2c8d283d0aec81b2b8276074082c951a /korganizer/mainwindow.cpp | |
parent | c626089f47244d0c0a9ba73bcd12f42927acb28f (diff) | |
download | kdepimpi-af56077eeeab7b46b98ad5159c6653114abf6602.zip kdepimpi-af56077eeeab7b46b98ad5159c6653114abf6602.tar.gz kdepimpi-af56077eeeab7b46b98ad5159c6653114abf6602.tar.bz2 |
kopi fixes
-rw-r--r-- | korganizer/mainwindow.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 5ec7ddd..151b55b 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -1629,52 +1629,56 @@ void MainWindow::keyPressEvent ( QKeyEvent * e ) mView->selectFilter( pro-1 ); } if ( showSelectedDates ) { ;// setCaptionToDates(); } } void MainWindow::fillFilterMenu() { selectFilterMenu->clear(); bool disable = false; + selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 ); + selectFilterMenu->insertSeparator(); if ( mView->filterView()->filtersEnabled() ) { - selectFilterMenu->insertItem(i18n ( "Turn filter off" ), 0 ); + selectFilterMenu->insertItem(i18n ( "Turn filter off" ), 1 ); } else { - selectFilterMenu->insertItem(i18n ( "Turn filter on" ), 0 ); + selectFilterMenu->insertItem(i18n ( "Turn filter on" ), 1 ); disable = true; } selectFilterMenu->insertSeparator(); QPtrList<CalFilter> fili = mView->filters(); CalFilter *curfilter = mView->filterView()->selectedFilter(); CalFilter *filter = fili.first(); - int iii = 1; + int iii = 2; while(filter) { selectFilterMenu->insertItem( filter->name(), iii ); if ( filter == curfilter) selectFilterMenu->setItemChecked( iii, true ); if ( disable ) selectFilterMenu->setItemEnabled( iii, false ); filter = fili.next(); ++iii; } } void MainWindow::selectFilter( int fil ) { if ( fil == 0 ) { + mView->editFilters( ); + } else if ( fil == 1 ){ mView->toggleFilerEnabled( ); } else { - mView->selectFilter( fil-1 ); + mView->selectFilter( fil-2 ); } } void MainWindow::configureToolBar( int item ) { configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) ); KOPrefs *p = KOPrefs::instance(); p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 ); p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 ); p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 ); p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 ); p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 ); |