author | zautrix <zautrix> | 2005-04-01 23:20:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-01 23:20:35 (UTC) |
commit | 7aefe488d1fe0c34cf29460f48a9a97d632f615e (patch) (unidiff) | |
tree | 74428992c61546dfab1f4e966b9910f8cb5e8bde /korganizer | |
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 | |||
@@ -505,18 +505,19 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) | |||
505 | } | 505 | } |
506 | } | 506 | } |
507 | if (me->button() == LeftButton) | 507 | if (me->button() == LeftButton) |
508 | mLeftMouseDown = false; | 508 | mLeftMouseDown = false; |
509 | 509 | ||
510 | break; | 510 | break; |
511 | 511 | ||
512 | case QEvent::MouseMove: | 512 | case QEvent::MouseMove: |
513 | //qDebug("mm "); | ||
513 | if ( !mLeftMouseDown ) | 514 | if ( !mLeftMouseDown ) |
514 | return true; | 515 | return false; |
515 | if ( blockMoving ) { | 516 | if ( blockMoving ) { |
516 | int dX, dY; | 517 | int dX, dY; |
517 | dX = startX - viewportPos.x(); | 518 | dX = startX - viewportPos.x(); |
518 | if ( dX < 0 ) | 519 | if ( dX < 0 ) |
519 | dX = -dX; | 520 | dX = -dX; |
520 | dY = viewportPos.y() - startY; | 521 | dY = viewportPos.y() - startY; |
521 | if ( dY < 0 ) | 522 | if ( dY < 0 ) |
522 | dY = -dY; | 523 | dY = -dY; |