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

qmllint should check Connections

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • 6.8
    • 6.3
    • QML: Tooling

    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

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes