QmlDesigner: Prevent calling the node instance view directly

Views should not write to the node instance view directly. Instead they
should use the model for manipulation.

Change-Id: I3941cc691addab939b8032952230cbe03951730b
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Marco Bubke
2022-10-10 17:41:03 +02:00
parent 21b0a69331
commit ba891e7f34
24 changed files with 95 additions and 84 deletions

View File

@@ -50,4 +50,13 @@ enum class View3DActionType {
SyncBackgroundColor,
GetNodeAtPos
};
constexpr bool isNanotraceEnabled()
{
#ifdef NANOTRACE_ENABLED
return true;
#else
return false;
#endif
}
}