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

Correctly convert issue table cells to their display string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 15.0.0 (15.0 branch)
    • Axivion
    • None

    Description

      To display the data of the cells of the issue table, the raw value has to be converted to a human readable string.

      In the current implementation, only the ID column is special cased.

      Each column has a type: ColumnInfoDto.type. Depending on this type, the conversion to the display string has to be adapted.

      • path: `filename.extension [C:/path/to/file/]` (Separator is always `/`)
      • tags: elements of the tag list joined with `", "`
      • number:
        •  null: empty string
        • string `Infinity`, `-Infinity, or `NaN`: could be displayed as is
        • If the number's fractional part is 0, render it as decimal integer, otherwise as decimal floating point value, preferable not in exponential notation
      • boolean: ColumnInfoDto.typeOptions should be used. A value of false should take index 0, true index 1. ColumnTypeOptionDto.key is the string to show the user.
      • state, string: just display them as they are (nulls are converted to an empty string)

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-32023
          # Subject Branch Project Status CR V

          Activity

            People

              cstenger Christian Stenger
              anloth An Loth
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change