-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 17.0.0
-
-
893a86a51 (17.0)
Moving QML component into separate file does not add the component file to CMakeLists.txt
Steps to reproduce:
- Create new project: "New Project" -> "Qt Quick Application"
- Add an Item to the Main.qml inside the Window:
Item { width: 200 height: 100 }
(Declaring properties is not mandatory.)
- Open context menu and select "Refactoring" -> "Move Component into Separate File"
- Approve moving component by selecting "OK" from the dialog
Expected:
MyComponent.qml is added to the CMakeLists.txt with QML_FILES
Actual:
MyComponent is not added to the CMakeLists.txt and it is underlined with yellow "MyComponent was not found..."
Attached video of the issue with steps.
For Gerrit Dashboard: QTCREATORBUG-33298 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
667562,4 | QmlJSEditor: Fix refactoring component to separate file | 17.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |