summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp4
-rw-r--r--korganizer/kotodoview.cpp6
2 files changed, 8 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 8e83723..ba0e6c6 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -1919,37 +1919,37 @@ void CalendarView::eventAdded(Event *event)
1919{ 1919{
1920 changeEventDisplay(event,KOGlobals::EVENTADDED); 1920 changeEventDisplay(event,KOGlobals::EVENTADDED);
1921} 1921}
1922 1922
1923void CalendarView::eventToBeDeleted(Event *) 1923void CalendarView::eventToBeDeleted(Event *)
1924{ 1924{
1925 kdDebug() << "CalendarView::eventToBeDeleted(): to be implemented" << endl; 1925 kdDebug() << "CalendarView::eventToBeDeleted(): to be implemented" << endl;
1926} 1926}
1927 1927
1928void CalendarView::eventDeleted() 1928void CalendarView::eventDeleted()
1929{ 1929{
1930 changeEventDisplay(0,KOGlobals::EVENTDELETED); 1930 changeEventDisplay(0,KOGlobals::EVENTDELETED);
1931} 1931}
1932void CalendarView::changeTodoDisplay(Todo *which, int action) 1932void CalendarView::changeTodoDisplay(Todo *which, int action)
1933{ 1933{
1934 changeIncidenceDisplay((Incidence *)which, action); 1934 changeIncidenceDisplay((Incidence *)which, action);
1935 mDateNavigator->updateView(); 1935 mDateNavigator->updateView(); //LR
1936 //mDialogManager->updateSearchDialog(); 1936 //mDialogManager->updateSearchDialog();
1937 1937
1938 if (which) { 1938 if (which) {
1939 mViewManager->currentView()->updateView(); 1939 //mViewManager->currentView()->updateView();//LR
1940 //mTodoList->updateView(); 1940 //mTodoList->updateView();
1941 } 1941 }
1942 1942
1943} 1943}
1944 1944
1945void CalendarView::changeIncidenceDisplay(Incidence *which, int action) 1945void CalendarView::changeIncidenceDisplay(Incidence *which, int action)
1946{ 1946{
1947 updateUnmanagedViews(); 1947 updateUnmanagedViews();
1948 //qDebug(" CalendarView::changeIncidenceDisplay++++++++++++++++++++++++++ %d %d ",which, action ); 1948 //qDebug(" CalendarView::changeIncidenceDisplay++++++++++++++++++++++++++ %d %d ",which, action );
1949 if ( action == KOGlobals::EVENTDELETED ) { //delete 1949 if ( action == KOGlobals::EVENTDELETED ) { //delete
1950 mCalendar->checkAlarmForIncidence( 0, true ); 1950 mCalendar->checkAlarmForIncidence( 0, true );
1951 if ( mEventViewerDialog ) 1951 if ( mEventViewerDialog )
1952 mEventViewerDialog->hide(); 1952 mEventViewerDialog->hide();
1953 } 1953 }
1954 else 1954 else
1955 mCalendar->checkAlarmForIncidence( which , false ); 1955 mCalendar->checkAlarmForIncidence( which , false );
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index d9e0a03..da46eca 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -480,32 +480,38 @@ void KOTodoView::jumpToDate ()
480// if ( mActiveItem->todo()->hasDueDate() ) 480// if ( mActiveItem->todo()->hasDueDate() )
481// emit mActiveItem->todo()jumpToTime( mTodo->dtDue().date() ); 481// emit mActiveItem->todo()jumpToTime( mTodo->dtDue().date() );
482} 482}
483 483
484void KOTodoView::setNarrow() 484void KOTodoView::setNarrow()
485{ 485{
486 //mTodoListView->setColumnWidth( 0, 120 ); 486 //mTodoListView->setColumnWidth( 0, 120 );
487 mTodoListView->setColumnWidth( 1, 35 ); 487 mTodoListView->setColumnWidth( 1, 35 );
488 mTodoListView->setColumnWidth( 2, 40 ); 488 mTodoListView->setColumnWidth( 2, 40 );
489 mTodoListView->setColumnWidth( 3, 80 ); 489 mTodoListView->setColumnWidth( 3, 80 );
490 mTodoListView->setColumnWidth( 4, 40 ); 490 mTodoListView->setColumnWidth( 4, 40 );
491 mTodoListView->setColumnWidth( 5, 90 ); 491 mTodoListView->setColumnWidth( 5, 90 );
492 492
493} 493}
494void KOTodoView::updateView() 494void KOTodoView::updateView()
495{ 495{
496
497 if ( mBlockUpdate ) {
498 //qDebug("blocked ");
499 return;
500 }
501 //qDebug("update ");
496// kdDebug() << "KOTodoView::updateView()" << endl; 502// kdDebug() << "KOTodoView::updateView()" << endl;
497 QFont fo = KOPrefs::instance()->mTodoViewFont; 503 QFont fo = KOPrefs::instance()->mTodoViewFont;
498 mTodoListView->clear(); 504 mTodoListView->clear();
499 if ( mName == "todolistsmall" ) { 505 if ( mName == "todolistsmall" ) {
500 if ( KOPrefs::instance()->mTodoViewUsesSmallFont ) { 506 if ( KOPrefs::instance()->mTodoViewUsesSmallFont ) {
501 int ps = fo.pointSize() -2; 507 int ps = fo.pointSize() -2;
502 if ( ps > 12 ) 508 if ( ps > 12 )
503 ps -= 2; 509 ps -= 2;
504 fo.setPointSize( ps ); 510 fo.setPointSize( ps );
505 } 511 }
506 } 512 }
507 513
508 mTodoListView->setFont( fo ); 514 mTodoListView->setFont( fo );
509 // QFontMetrics fm ( KOPrefs::instance()->mTodoViewFont ); 515 // QFontMetrics fm ( KOPrefs::instance()->mTodoViewFont );
510 //mTodoListView->header()->setMaximumHeight(fm.height()); 516 //mTodoListView->header()->setMaximumHeight(fm.height());
511 QPtrList<Todo> todoList = calendar()->todos(); 517 QPtrList<Todo> todoList = calendar()->todos();