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

Collapse Empty Objects using qmlformat

    XMLWordPrintable

Details

    • 1b438b039 (dev), 341e40077 (6.7), 8a0ac5340 (6.6), 18b7910fd (tqtc/lts-6.5)

    Description

      As a user of the qmlformat utility I want the tool to collapse empty objects so that the code stays readable and clean.

      Initial:

      readonly property MpvqcManager mpvqcManager: MpvqcManager {}   
      readonly property MpvqcSettings mpvqcSettings: MpvqcSettings {}
      

      Expected (after qmlformat):

      readonly property MpvqcManager mpvqcManager: MpvqcManager {}   
      readonly property MpvqcSettings mpvqcSettings: MpvqcSettings {}
      

      Actual:

      readonly property MpvqcManager mpvqcManager: MpvqcManager {
      }
      readonly property MpvqcSettings mpvqcSettings: MpvqcSettings {
      }
      

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            trin94 Elias Müller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes