Files
qt-creator/share/qtcreator/qml/qmlpuppet/interfaces/nodeinstanceglobal.h
Marco Bubke ba891e7f34 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>
2022-10-12 16:29:56 +00:00

63 lines
1.2 KiB
C++

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <QByteArray>
#include <QList>
#include <vector>
namespace QmlDesigner {
using PropertyName = QByteArray;
using PropertyNameList = QList<PropertyName>;
using PropertyNames = std::vector<PropertyName>;
using TypeName = QByteArray;
enum class AuxiliaryDataType {
None,
Temporary,
Document,
NodeInstancePropertyOverwrite,
NodeInstanceAuxiliary
};
enum class View3DActionType {
Empty,
MoveTool,
ScaleTool,
RotateTool,
FitToView,
AlignCamerasToView,
AlignViewToCamera,
SelectionModeToggle,
CameraToggle,
OrientationToggle,
EditLightToggle,
ShowGrid,
ShowSelectionBox,
ShowIconGizmo,
ShowCameraFrustum,
ShowParticleEmitter,
Edit3DParticleModeToggle,
ParticlesPlay,
ParticlesRestart,
ParticlesSeek,
SelectBackgroundColor,
SelectGridColor,
ResetBackgroundColor,
SyncBackgroundColor,
GetNodeAtPos
};
constexpr bool isNanotraceEnabled()
{
#ifdef NANOTRACE_ENABLED
return true;
#else
return false;
#endif
}
}