-rw-r--r-- | korganizer/kotodoview.cpp | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index dd2c081..0a608dc 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -708,19 +708,13 @@ void KOTodoView::updateView() if ( next ) todo = todoList.next(); } -// qDebug("again .... "); -// for(todo = todoList.first(); todo; todo = todoList.next()) { - -// qDebug("yytodo %s ", todo->summary().latin1()); -// } - //qDebug("for "); + for(todo = todoList.first(); todo; todo = todoList.next()) { if (!mTodoMap.contains(todo) && checkTodo( todo ) ) { insertTodoItem(todo); } } - //qDebug("for end "); // Restore opened/closed state mTodoListView->blockSignals( true ); if( mDocPrefs ) restoreItemState( mTodoListView->firstChild() ); @@ -912,7 +906,6 @@ void KOTodoView::printPreview(CalPrinter *calPrinter, const QDate &fd, void KOTodoView::editItem(QListViewItem *item ) { - // qDebug("editItem(QListViewItem *item ) "); emit editTodoSignal(((KOTodoViewItem *)item)->todo()); } @@ -1096,7 +1089,7 @@ void KOTodoView::itemDoubleClicked(QListViewItem *item) pendingSubtodo = 0; //int row = mTodoListView->header()->sectionAt ( mTodoListView->header()->mapFromGlobal( QCursor::pos()).x() ); int row = mTodoListView->header()->sectionAt ( mTodoListView->viewportToContents(mTodoListView->viewport()->mapFromGlobal( QCursor::pos())) .x() ); - qDebug("ROW %d ", row); + //qDebug("ROW %d ", row); if (!item) { newTodo(); return; @@ -1170,25 +1163,7 @@ void KOTodoView::itemClicked(QListViewItem *item) return; } } -#if 0 - // handled by the item itself - bool completed = todoItem->todo()->isCompleted(); // Completed or not? - qDebug("com %d ",completed ); - qDebug("itemclicked "); - if (todoItem->isOn()) { - qDebug("on "); - if (!completed) { - qDebug("set true "); - todoItem->todo()->setCompleted(QDateTime::currentDateTime()); - } - } else { - qDebug("not on "); - if (completed) { - qDebug("set false "); - todoItem->todo()->setCompleted(false); - } - } -#endif + } void KOTodoView::setDocumentId( const QString &id ) |