author | zautrix <zautrix> | 2005-04-10 23:19:20 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-10 23:19:20 (UTC) |
commit | 726d9302b230f53cc058d2dbfd89c7a3c4f18fb2 (patch) (side-by-side diff) | |
tree | 8d4416e152b1c1eeb81c7f67ea486300ad589365 /korganizer/kotodoview.cpp | |
parent | ef11b9d4de01d601bfcfb8efacb0aeff1e657edb (diff) | |
download | kdepimpi-726d9302b230f53cc058d2dbfd89c7a3c4f18fb2.zip kdepimpi-726d9302b230f53cc058d2dbfd89c7a3c4f18fb2.tar.gz kdepimpi-726d9302b230f53cc058d2dbfd89c7a3c4f18fb2.tar.bz2 |
fixxxxxx
-rw-r--r-- | korganizer/kotodoview.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 9b5d4ce..7817a75 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -1094,20 +1094,21 @@ void KOTodoView::itemDoubleClicked(QListViewItem *item) if ( pendingSubtodo != 0 ) { topLevelWidget()->setCaption(i18n("Reparenting aborted!")); } pendingSubtodo = 0; - int row = mTodoListView->header()->sectionAt ( mTodoListView->header()->mapFromGlobal( QCursor::pos()).x() ); - //qDebug("ROW %d ", row); + //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); if (!item) { newTodo(); return; } else { - if ( row == 2 ) { + if ( row == 2 || row == 1 ) { mActiveItem = (KOTodoViewItem *) item; newSubTodo(); return; } - if ( row == 1 ) { + if ( row == 5 || row == 6 ) { mActiveItem = (KOTodoViewItem *) item; toggleRunningItem(); return; } |