QmlDesigner: Auxiliary data auto-fold

- Made TextEditorWidget::restoreState() virtual
 - Added function to fold qml Auxiliary Data
 - Extended settings page to fit the new option

Task: QDS-1667
Change-Id: Id1256fcc72a67ac822888d5fd2e23d6076349573
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Aleksei German
2020-02-20 15:19:12 +01:00
parent 33b091bd40
commit 103a602f8d
6 changed files with 82 additions and 3 deletions

View File

@@ -60,11 +60,15 @@ namespace QmlJSEditor {
bool autoFormatOnlyCurrentProject() const;
void setAutoFormatOnlyCurrentProject(const bool autoFormatOnlyCurrentProject);
bool foldAuxData() const;
void setFoldAuxData(const bool foldAuxData);
private:
bool m_enableContextPane;
bool m_pinContextPane;
bool m_autoFormatOnSave;
bool m_autoFormatOnlyCurrentProject;
bool m_foldAuxData;
};
inline bool operator==(const QmlJsEditingSettings &s1, const QmlJsEditingSettings &s2)