author | zautrix <zautrix> | 2005-04-01 23:20:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-01 23:20:35 (UTC) |
commit | 7aefe488d1fe0c34cf29460f48a9a97d632f615e (patch) (side-by-side diff) | |
tree | 74428992c61546dfab1f4e966b9910f8cb5e8bde | |
parent | 02bdd5a73feb7bd2431c5492c7bbf663f28efbd8 (diff) | |
download | kdepimpi-7aefe488d1fe0c34cf29460f48a9a97d632f615e.zip kdepimpi-7aefe488d1fe0c34cf29460f48a9a97d632f615e.tar.gz kdepimpi-7aefe488d1fe0c34cf29460f48a9a97d632f615e.tar.bz2 |
nf
-rw-r--r-- | korganizer/koagenda.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 9720f43..deadfc9 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -489,50 +489,51 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) placeSubCells( mActionItem ); // emit startDragSignal( mActionItem->incidence() ); setCursor( arrowCursor ); mActionItem = 0; mActionType = NOP; mItemMoved = 0; mLeftMouseDown = false; return true; } endItemAction(); } } } else { // ---------- viewport() if (me->button() == LeftButton && mLeftMouseDown ) { //left click endSelectAction( true ); // emit new event signal } } if (me->button() == LeftButton) mLeftMouseDown = false; break; case QEvent::MouseMove: + //qDebug("mm "); if ( !mLeftMouseDown ) - return true; + return false; if ( blockMoving ) { int dX, dY; dX = startX - viewportPos.x(); if ( dX < 0 ) dX = -dX; dY = viewportPos.y() - startY; if ( dY < 0 ) dY = -dY; //qDebug("%d %d %d ", dX, dY , blockmoveDist ); if ( dX > blockmoveDist || dY > blockmoveDist ) { blockMoving = false; } } if ( ! blockMoving ) mPopupTimer->stop(); if (object != viewport()) { KOAgendaItem *moveItem = (KOAgendaItem *)object; if (!moveItem->incidence()->isReadOnly() ) { if (!mActionItem) setNoActionCursor(moveItem,viewportPos); else { if ( !blockMoving ) performItemAction(viewportPos); } |