Menu

#1948 Qt ScintillaEditBase loses mouse tracking when hidden

Bug
closed-fixed
nobody
5
2017-08-16
2017-06-09
No

The Qt ScintillaEdit does setMouseTracking(true) in the constructor so that it can get mouse-move events over its widget.

Commit 45bacc97f7396fcea110428b55965d541935377d then tweaked this a little so that when the widget is hidden mouse tracking is turned off. That's reasonable, but it doesn't have any code to turn it back on again when the widget is shown again.

This means that if you e.g. have the scintilla in a tab widget and it becomes hidden temporarily while switching tabs, when it comes back then things like dwelling don't work properly as the mousemove events aren't received regularly.

I think the fix for this is relatively simple - I've attached a potential patch which just adds an additional case to pick up on the show event and re-enable tracking.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2017-06-09
    • labels: Scintilla, Qt ScintillaEdit --> Qt ScintillaEdit, qt, scintilla
     
  • Neil Hodgson

    Neil Hodgson - 2017-06-09

    Committed as [d0038c].

     

    Related

    Commit: [d0038c]

  • Neil Hodgson

    Neil Hodgson - 2017-06-10
    • status: open --> open-fixed
     
  • Baldur Karlsson

    Baldur Karlsson - 2017-06-10

    Thanks for the quick turnaround!

     
  • Neil Hodgson

    Neil Hodgson - 2017-08-16
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB