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

Collapse Empty Objects using qmlformat

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.8
    • 6.3.1
    • QML: Tooling

    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

        Activity

          People

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

            Dates

              Created:
              Updated: