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

Correctly convert issue table cells to their display string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 16.0.0-rc1
    • Qt Creator 15.0.0
    • Axivion
    • None
    • fe2a3bda6 (16.0)

      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)

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes