[Bug 155531] Mouse clicks are not recognised if the mouse moves at all during the click

Aaron J.Seigo aseigo at kde.org
Sun Jan 13 01:05:26 CET 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=155531         




------- Additional Comments From aseigo kde org  2008-01-13 01:05 -------
the patch is unfortunately wrong.

now when a drag of a desktop icon is complete, the icon is launched. this obviously shouldn't happen.

we can't rely on QGraphicsItem::ItemPositionChange since we don't get that when embedded in another item. we can't rely on the Icon widget being set to non-movable itself for the same reason.

i think the only real solution will be to capture the scene coordinates on mouse down, and compare them with the scene coordinates on mouse up before emitting clicked.


More information about the Panel-devel mailing list