don't use startdragdistance here
emit click if the cursor is still in the area regardless of the distance travelled this because MouseEventListener doesn't start drags BUG:320893 FIXED-IN:4.11 cherry-picked from ac9592832893cd6562dc0747f8afc1d7f89442c8 in kde-runtime
This commit is contained in:
parent
057d592a1a
commit
728cf2e53f
@ -131,7 +131,7 @@ void MouseEventListener::mouseReleaseEvent(QMouseEvent *me)
|
||||
m_pressed = false;
|
||||
emit released(&dme);
|
||||
|
||||
if (QPointF(me->pos() - buttonDownPos(me->button())).manhattanLength() <= QApplication::startDragDistance() && m_pressAndHoldTimer->isActive()) {
|
||||
if (boundingRect().contains(me->pos()) && m_pressAndHoldTimer->isActive()) {
|
||||
emit clicked(&dme);
|
||||
m_pressAndHoldTimer->stop();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user