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

Add list of reserved words not to be used as QML ids

XMLWordPrintable

    • 279ba9d7b (dev), 58abe711e (6.9), 9f6b9fa0b (6.8)

      http://doc.trolltech.com/4.7/qdeclarativeintroduction.html says about QML ids:

      Note that an id must begin with a lower-case letter or an underscore, and cannot contain characters other than letters, numbers and underscores.
      

      But actually also any JavaScript keywords are forbidden, and 'as' (reserved keyword specifically in QML, I'm not sure whether there are also others).

      List of JavaScript keywords can be found in https://developer.mozilla.org/en/JavaScript/Reference/Reserved_Words or http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf

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

            ulherman Ulf Hermann
            kkohne Kai Köhne
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes