Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-26305

1px branch lines are shown in QTreeView even with 0px indentation.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • None
    • 4.8.2
    • Widgets: Itemviews
    • None
    • Linux pc 3.4.0-1-ARCH #1 SMP PREEMPT Mon May 21 10:10:13 CEST 2012 x86_64 GNU/Linux

    • b37849a5f54d7d3e66adb4430daa2cbd7b366f13

    Description

      When there is a 0px identation set with setIndentation(0), no tree branches should be visible.

      Currently, when the identation is set to 0px, there are 1px tree branches at the left of the items, and they look like a visual artifact.

      If someone sets identation to 0px, he clearly doesn't want to see tree branches, especially if they don't look like tree branches.

      The only way to fix this from the application (disable branches) is to override QTreeView::drawBranches. See https://git.reviewboard.kde.org/r/105342/

      Disabling tree branches when the identation is 0px won't break anything, because they are not useful when they are only 1px wide.

      Attachments

        1. 182.png
          12 kB
          Сковорода Никита
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            chalker Сковорода Никита
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes