From 7e22293b1ec1ee190ca8db6c8ecd079bafdae520 Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 06 Jul 2005 11:17:00 +0000 Subject: fixes --- (limited to 'korganizer') diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 7566c6f..4b3f806 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -3997,12 +3997,10 @@ void CalendarView::processTodoListSelection( Incidence *incidence ) void CalendarView::processIncidenceSelection( Incidence *incidence ) { + emit incidenceSelected( incidence ); if ( incidence == mSelectedIncidence ) return; - mSelectedIncidence = incidence; - emit incidenceSelected( mSelectedIncidence ); - if ( incidence && incidence->typeID() == eventID ) { Event *event = static_cast( incidence ); if ( event->organizer() == KOPrefs::instance()->email() ) { diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 92c1cd6..acdf5a0 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -154,7 +154,6 @@ void MarcusBains::updateLocation(bool recalculate) mTimeBox->raise(); //mTimeBox->setAutoMask(true); int secs = QTime::currentTime().second(); - qDebug("second %d ", secs ); minutes->start( (60 - secs +1)*1000 ,true); } diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 86e1bd9..a87e6fc 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -1154,6 +1154,7 @@ void KOTodoView::setNewPriority(int index) todoModified (mActiveItem->todo(), KOGlobals::PRIORITY_MODIFIED); mActiveItem->todo()->setRevision( mActiveItem->todo()->revision()+1 ); } + processSelectionChange(); } void KOTodoView::setNewPercentage(int index) @@ -1162,6 +1163,7 @@ void KOTodoView::setNewPercentage(int index) if ( mPercentage[index] == 100 && !mActiveItem->isOn() ) { mActiveItem->setOn( true ); + processSelectionChange(); return; } else if ( mPercentage[index] != 100 && mActiveItem->isOn() ) { KOTodoViewItem* par = (static_cast(mActiveItem->parent())); @@ -1178,6 +1180,7 @@ void KOTodoView::setNewPercentage(int index) todoModified (mActiveItem->todo (), KOGlobals::COMPLETION_MODIFIED); mActiveItem->todo()->setRevision( mActiveItem->todo()->revision()+1 ); } + processSelectionChange(); } void KOTodoView::fillCategories () diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 88dbd4f..cbf6096 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -1682,8 +1682,12 @@ void MainWindow::processIncidenceSelection( Incidence *incidence ) startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); } } - else - startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); + else { + if ( (( KCal::Todo*)incidence)->percentComplete() == 100 ) + startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+i18n("completed on %1").arg( (( KCal::Todo*)incidence)->completedStr(true) ); + else + startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); + } if ( !incidence->location().isEmpty() ) startString += " (" +incidence->location()+")"; setCaption( incidence->summary()+startString); -- cgit v0.9.0.2