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

Simplification of Logic in `MusicProgress.qml`

XMLWordPrintable

    • April18

      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)

        For Gerrit Dashboard: AUTOSUITE-255
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes