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

Formatting qml code containing an enum with qmlformat removes enum values

    XMLWordPrintable

Details

    • Linux/X11, macOS
    • c3a0c8ccc (dev), c53e1ff4d (6.8), a1068ca22 (6.7), 52b90c32c (tqtc/lts-6.5)

    Description

      Formatting qml code containing an enum with qmlformat removes enum values, as shown below. 

      //Before qmlformat code :

      Rectangle{
      enum AxisAlignment{
      Bottom = 0, 
      Left = 1, 
      Right = 2 
      }
      }

      //After qml format code 

      Rectangle {
          enum AxisAlignment {
              Bottom,
              Left,
              Right
          }
      }

      Attachments

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

        Activity

          People

            semih.yavuz Semih Yavuz
            shin1_okada Shinichi Okada
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes