diff options
author | Miguel Costa <miguel.costa@qt.io> | 2018-10-04 23:37:33 +0200 |
---|---|---|
committer | Miguel Costa <miguel.costa@qt.io> | 2018-10-24 11:36:08 +0000 |
commit | 9463ffcc35db59f6519a8ea70ca884a3573e65da (patch) | |
tree | 477687f0fa8e937181e115e3f49fecdafdcadeda /src/qtprojectlib/QtVSIPSettings.cs | |
parent | 4886ac44e587a44ba4fc63c6cd65d66e6e1b47df (diff) |
Add QML debug options to project settings
Added two new options to the Qt project settings dialog: "QML Debug",
that enables/disables the debugging of QML code, and "QML Debug Port",
that allows the TCP port of the QML runtime to be configured. When
creating new projects or opening projects created with previous versions
of the Qt VS Tools, QML debugging will be enabled by default.
Task-number: QTVSADDINBUG-412
Change-Id: I2ad9ed8ed575b2349e74910870d867adce5d94a8
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/qtprojectlib/QtVSIPSettings.cs')
-rw-r--r-- | src/qtprojectlib/QtVSIPSettings.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/qtprojectlib/QtVSIPSettings.cs b/src/qtprojectlib/QtVSIPSettings.cs index 93fb20b8..230eeeb8 100644 --- a/src/qtprojectlib/QtVSIPSettings.cs +++ b/src/qtprojectlib/QtVSIPSettings.cs @@ -506,5 +506,25 @@ namespace QtProjectLib return; regKey.SetValue(key, val ? 1 : 0); } + + public static bool GetQmlDebug(EnvDTE.Project project) + { + return QtProject.Create(project).QmlDebug; + } + + public static void SaveQmlDebug(EnvDTE.Project project, bool enabled) + { + QtProject.Create(project).QmlDebug = enabled; + } + + public static ushort GetQmlDebugPort(EnvDTE.Project project) + { + return QtProject.Create(project).QmlDebugPort; + } + + public static void SaveQmlDebugPort(EnvDTE.Project project, ushort port) + { + QtProject.Create(project).QmlDebugPort = port; + } } } |