Uploaded image for project: 'Qt Automotive Suite'
  1. Qt Automotive Suite
  2. AUTOSUITE-255

Simplification of Logic in `MusicProgress.qml`

    XMLWordPrintable

Details

    • April18

    Description

      from `MusicProgress.qml`

      property int progressBarWidth: {
        if (root.labelOnTop) {
          return root.width - Style.hspan(6/45);
        } else {
          return root.width - Style.hspan(5);
       }
      }

      Can be simplified to:

      property int progressBarWidth: root.width - Style.hspan(root.labelOnTop?6/45:5)

      Attachments

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

        Activity

          People

            bram_harimukti Bramastyo Harimukti Santoso
            jryannel Juergen Bocklage-Ryannel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes