forked from qt-creator/qt-creator
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:
@@ -50,4 +50,13 @@ enum class View3DActionType {
|
||||
SyncBackgroundColor,
|
||||
GetNodeAtPos
|
||||
};
|
||||
|
||||
constexpr bool isNanotraceEnabled()
|
||||
{
|
||||
#ifdef NANOTRACE_ENABLED
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user