• Marc Reilly's avatar
    hoverhandler: add priority system to determine which tooltip is shown · 64b172ae
    Marc Reilly authored
    Hover handlers now have a priority which is used to determine which
    handler's tooltip is shown. The handler with the highest priority is
    used, or, in the case of equal rankings, the first registered handler.
    The base handler implements a default basic priority system based on the
    diagnostic and help properties. Derived handlers can manually set the
    ranking value as part of the identifyMatch() call.
    A new checkToolTip() method is added so the handler can analyze whether a
    tooltip is valid without it being shown.
    Change-Id: I9d82fb9cc52f1d3cd53a8b197d75cd923651b79d
    Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
texteditor.cpp 268 KB