Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.6, 6.7.2, 6.8.0 Beta2
-
0835b5d13 (dev), cb16d776e (6.8), 0b7216a08 (6.7), ea6d706e6 (dev), 62e0c1005 (6.8), b842658d0 (6.7)
Description
Before clicking the lightbulb
Warning:
no matching signal found for handler "onWidthChanged": Implicitly defining onWidthChanged as signal handler in Connections is deprecated. Create a function instead.
After clicking the lightbulb
Error:
Unexpected token `...'
Expected outcomes
qmlls should place the existing code – `console.log("New width:", root.width)` - inside the function block rather than erasing it
Attachments
Issue Links
- resulted in
-
QTBUG-127535 dom powered quick fixes/warnings messages in qmllint
- Reported
For Gerrit Dashboard: QTBUG-127474 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
578713,1 | WIP: auto-fix for wrong handlers in connections | dev | qt/qtdeclarative | Status: DEFERRED | -2 | 0 |
578718,5 | qmljsimportvisitor: remove Connections fix-it | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |
579126,4 | doc: add qmllint warning about signal handlers in connections | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
579325,2 | qmljsimportvisitor: remove Connections fix-it | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
579426,2 | qmljsimportvisitor: remove Connections fix-it | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
579699,2 | doc: add qmllint warning about signal handlers in connections | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
579754,2 | doc: add qmllint warning about signal handlers in connections | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |