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

Coding convention for JavaScript functions in QML is unclear

    XMLWordPrintable

Details

    • 271c790e020b82be88e421611bef169334ea0a4f

    Description

      http://doc.qt.nokia.com/latest/qml-coding-conventions.html suggest two different coding conventions for JavaScript functions within QML:
      1) Qt, brace on next line:
      function calculateWidth(object)
      {

      2) Crockford JavaScript, brace on same line:
      function doSomething {

      Pick one.

      Attachments

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

        Activity

          People

            aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
            jaakko.tuosa Jaakko Tuosa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes