From dd80f5bb6eee2a924748b7d0acfb4fb892f58b86 Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 03 Jun 2005 11:21:25 +0000 Subject: block move change --- (limited to 'korganizer/koagenda.cpp') diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 99009a5..cdeeac5 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -413,7 +413,7 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) { static int startX = 0; static int startY = 0; - static int blockmoveDist = ( QApplication::desktop()->width() < 480 ? 15 : 20 ); + int blockmoveDist = ( QApplication::desktop()->width() < 480 ? 7 : 9 ); static bool blockMoving = true; //qDebug("KOAgenda::eventFilter_mous "); @@ -451,6 +451,7 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) } QPoint viewportPos; if (object != viewport()) { + blockmoveDist = blockmoveDist*2; viewportPos = ((QWidget *)object)->mapToParent(me->pos()); } else { viewportPos = me->pos(); @@ -470,7 +471,7 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) mPopupItem = (KOAgendaItem *)object; mPopupKind = 1; if (me->button() == RightButton) { - mPopupKind = 3; + mPopupKind = 3; popupMenu(); } else if (me->button() == LeftButton) { mActionItem = (KOAgendaItem *)object; @@ -500,7 +501,7 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) mCurrentCellY = gy; mStartCellX = gx; mStartCellY = gy; - mPopupKind = 4; + mPopupKind = 4; popupMenu(); } else if (me->button() == LeftButton) { setCursor(arrowCursor); -- cgit v0.9.0.2