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

qmllint should check Connections

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.3
    • Fix Version/s: 6.4
    • Component/s: QML: Tooling
    • Labels:

      Description

      I tested qmllint from fe59c788a65579bbeeb550fcad96cf26443df77a (currrent dev branch).
      With such code:

      Item {
          MouseArea {
              id: area
      /*      onBugaga: function(mouse) {
                      foo(mouse);
              }*/
          }
          Connections {
            target: area
            function onBugaga(mouse) { foo(mouse) }
          }    
      }
      

      If I uncomment `onBugaga` inside "MouseArea" then qmllint reports:

      Warning: Test.qml:6:2: no matching signal found for handler "onBugaga"
      

      But with original code qmllint reports nothing.
      I expect the same message about "no matching signal found" for ""onBugaga" inside "Connections".

        Attachments

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

          Activity

            People

            Assignee:
            qtqmlteam Qt Qml Team User
            Reporter:
            evgeniy_dushistov evgeniy_dushistov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes