Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32658

Git-blame tooltip doesn't appear if line is longer than the window is wide

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 14.0.2, Qt Creator 16.0.0
    • None

    Description

      When a line is longer than the window is wide (zoom in, if needed), e.g.

      then the grey-shaded "comment" at the end of the line that contains the git-blame information is not visible.

      That's the first issue.

      If I then scroll to the right to "make space" for that grey-shaded "comment", it appears:

      So far so good.

      But if I hover with the mouse over it/its ... then the usual tooltip with the diff and the option to view or copy the SHA-1 of the commit to the clipboard just doesn't appear.

      Expected behaviour:

      1. that info is somehow also available elsewhere, so a long line doesn't completely hide it (warnings and errors, which are also rendered there, can also be accessed from the breakpoint column on the left side of the editor; could add it there, e.g.)
      2. that if I scroll to the right to make the grey-shaded area visible, then the tooltip works like on unscrolled lines (ie. it does appear)

      This is a very long-standing issue, probably right since the git-blame annotation with the grey-shaded area on the right was added. Certainly 14.0.2 had the same issue.

      PS: The tooltip is also quite jumpy, making hitting the buttons in there rather hard. IIRC, QToolTip has a rect to tell it in which area the tooltip stays the same, in which case it won't move while the mouse is in it? Then again, it's probably the move of the mouse out of said rect into the tooltip that makes it back away?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes