Description
If user changes the content of a file in code view, there is no indication that file has been changed. This is revealed only by
a) user gets a prompt about saving unsaved changes when running the project (causes confusion)
b) user gets a prompt when trying to quit the application
Qt DS does not automatically save files, it uses internal logic to determine if change can be saved or not but does not commit it to the file (unless cmd/ctrl + s is pressed).
suggestion
If there are unsaved changes on the file when focus is no longer in the code view (user clicks somewhere else) :
- mark the file 'dirty' in the widget title with asterisk ( * ) (similar to VSC)
- prompt for saving changes (similar to current dialog, no new UX needed)
- have 'remember my choice' so Qt DS can save the files each time user navigates out from the code view (can be restated from settings)
Attachments
Gerrit Reviews
For Gerrit Dashboard: QDS-12361 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
554372,4 | QmlDesigner: Indicate if a file is modified | qds/dev | qt-creator/qt-creator | Status: MERGED | +2 | 0 |