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

Assignments to QML enumeration properties get autocompleted with string values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 4.6.2
    • Quick / QML Support
    • None
    • Windows

    Description

      https://doc.qt.io/qt-5/qml-enumeration.html For backwards compatibility, the enumeration value may also be specified as a string, e.g. "AlignRight". This form is not recommended for new code.

      Currently QtCreator autocompletes enumeration values to string values. (e.g. when pressing Ctrl+Space, see attached image qt_creator_auto_complete_enumeration.png)

      If string values are not recommended for new code, we should not suggest/autocomplete them.

       

      Attachments

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

        Activity

          People

            mabenell Marco Benelli
            toms toms
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes