Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22196

QML enum removed on save with autoformatting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 4.10.0-beta1
    • Qt Creator 4.8.2, Qt Creator 4.9.0-beta2
    • Quick / QML Support
    • None
    • Linux
      Windows

    Description

      I've "Enable auto format on file save" enabled.
      While trying to use enum it gets deleted on save!

      import QtQuick 2.9
      
      Item
      {
          enum DoNotDeleteMe
          {
              Yolo
          } 
      }
      

      After ctrl+s

      import QtQuick 2.9
      
      Item {
      
      }
      

      The "Tools > QML/JS > Reformat File" action has the same effect.

      Attachments

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

        Activity

          People

            tjenssen Tim Jenssen
            travnick MikoĊ‚aj
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes