-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 2 | ||||
-rw-r--r-- | korganizer/koagenda.cpp | 5 | ||||
-rw-r--r-- | korganizer/koprefs.cpp | 1 | ||||
-rw-r--r-- | korganizer/koprefs.h | 2 | ||||
-rw-r--r-- | korganizer/koprefsdialog.cpp | 16 | ||||
-rw-r--r-- | korganizer/kotodoview.cpp | 9 |
6 files changed, 24 insertions, 11 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 9476a89..a688eaf 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt @@ -1346,5 +1346,5 @@ { "The todo\n%1\nwill be cloned!\nIt has subtodos!\nDo you want to clone\nall subtodos as well?","Das Todo\n%1\nwird geklont!\nEs hat Untertodos!\nMöchten Sie\nalle Untertodos auch klonen?" }, { "Todo has subtodos","Todo hat Untertodos" }, -{ "","" }, +{ "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" }, { "","" }, { "","" }, diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 18c506e..114ed75 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -390,5 +390,5 @@ void KOAgenda::popupMenu() //mClickedItem = mPopupItem; selectItem(mPopupItem); - if ( mAllAgendaPopup ) + if ( mAllAgendaPopup && KOPrefs::instance()->mBlockPopupMenu ) mAllAgendaPopup->installEventFilter( this ); emit showIncidencePopupSignal(mPopupItem->incidence()); @@ -400,5 +400,6 @@ void KOAgenda::popupMenu() mLeftMouseDown = false; // no more leftMouse computation } - mNewItemPopup->installEventFilter( this ); + if ( KOPrefs::instance()->mBlockPopupMenu ) + mNewItemPopup->installEventFilter( this ); mNewItemPopup->popup( mPopupPos); diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index e8c7c76..a571ed4 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp @@ -229,4 +229,5 @@ KOPrefs::KOPrefs() : KPrefs::setCurrentGroup("Views"); + addItemBool("Block Popup Menu",&mBlockPopupMenu,true); addItemBool("Show Date Navigator",&mShowDateNavigator,true); addItemInt("Hour Size",&mHourSize,8); diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h index d511faa..2a0ee64 100644 --- a/korganizer/koprefs.h +++ b/korganizer/koprefs.h @@ -222,4 +222,6 @@ class KOPrefs : public KPimPrefs bool mHideNonStartedTodos; + bool mBlockPopupMenu; + int mLastSyncTime; void setCategoryColor(QString cat,const QColor & color); diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index a8943de..ad3c61c 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp @@ -382,11 +382,17 @@ void KOPrefsDialog::setupMainTab() topLayout->addMultiCellWidget(verticalScreen->checkBox(),4,4,0,1); - + + int iii = 5; + widbool = addWidBool(i18n("Block popup until mouse button release"), + &(KOPrefs::instance()->mBlockPopupMenu),topFrame); + topLayout->addMultiCellWidget( widbool->checkBox(), iii,iii,0,1); + ++iii; QHBox *dummy = new QHBox(topFrame); new QLabel(i18n("Days in Next-X-Days:"),dummy); mNextXDaysSpin = new QSpinBox(2,14,1,dummy); - topLayout->addMultiCellWidget(dummy,5,5,0,1); + topLayout->addMultiCellWidget(dummy,iii,iii,0,1); + ++iii; @@ -405,5 +411,6 @@ void KOPrefsDialog::setupMainTab() QHBox *intervalBox = new QHBox(topFrame); // intervalBox->setSpacing(mSpacingHint); - topLayout->addMultiCellWidget(intervalBox,6,6,0,1); + topLayout->addMultiCellWidget(intervalBox,iii,iii,0,1); + ++iii; QLabel *autoSaveIntervalLabel = new QLabel(i18n("Auto save delay in minutes:"),intervalBox); mAutoSaveIntervalSpin = new QSpinBox(0,500,1,intervalBox); @@ -423,5 +430,6 @@ void KOPrefsDialog::setupMainTab() addWidBool(i18n("Ask for quit when closing KO/Pi"), &(KOPrefs::instance()->mAskForQuit),topFrame); - topLayout->addMultiCellWidget(ask->checkBox(),7,7,0,1); + topLayout->addMultiCellWidget(ask->checkBox(),iii,iii,0,1); + ++iii; diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 9b5d4ce..7817a75 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -1096,16 +1096,17 @@ void KOTodoView::itemDoubleClicked(QListViewItem *item) } 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(); |