Summary: | Qt feature to drag window by dragging useless space is awfully irritating. | ||
---|---|---|---|
Product: | [Applications] kpat | Reporter: | Peterson Silva <peterson.235> |
Component: | general | Assignee: | Stephan Kulow <coolo> |
Status: | RESOLVED DUPLICATE | ||
Severity: | minor | CC: | cfeck, coates, kde-games-bugs |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Peterson Silva
2011-02-15 02:02:27 UTC
*** This bug has been marked as a duplicate of bug 245807 *** Reading the bug report, there should be a "dead zone", where clicks are not passed through to the window dragging code. Pseudeo code: void Canvas::mouseEvent(Event e) { foreach (Card card, cards) { if (card.bounds.contains(e.mouse)) { card.clicked() e.accept() return } } foreach (Card card, cards) { if (card.bounds.exanded(-10, -10, 10, 10).contains(e.mouse)) { e.accept() return } } e.passToOxygen() } Additional note: There is no hover feedback or no mouse-over cursor change (not that there should be any, unless it is fast), which means the only user-feedback is the (unexpected) window move/restore. Parker, would you accept a patch fixing this issue? (In reply to comment #4) > Parker, would you accept a patch fixing this issue? Honestly, I'm hesitant to. When this feature first landed in Oxygen, it brought to light 2 or 3 errors in KPat's mouse event handling (not accept()ing events or failing to call the base class handlers). As I result, I reworked the code to make it "correct". To add a workaround to KPat for a specific widget-style, especially one as complicated as computing offset areas for each card, strikes me as too much. As far as I know, push buttons and line edits aren't given such "drag buffers". I guess I'd accept a patch to KCardScene or KPat/View that just disables this dragging completely by accepting all press events, provided it was properly commented and explained why the code was doing "the wrong thing" with the mouse events. (In reply to comment #3) > There is no hover feedback or no mouse-over cursor change (not that there > should be any, unless it is fast), which means the only user-feedback is the > (unexpected) window move/restore. Is this not the case for any QWidget? |