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

Collapse Empty Objects using qmlformat

XMLWordPrintable

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

      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 {
      }
      

        For Gerrit Dashboard: QTBUG-108660
        # Subject Branch Project Status CR V

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

              Created:
              Updated:

                There are no open Gerrit changes