forked from qt-creator/qt-creator
Conflicts: .github/workflows/build_cmake.yml src/plugins/qmldesigner/components/connectioneditor/dynamicpropertiesmodel.cpp src/plugins/qmldesigner/components/materialeditor/materialeditorview.h src/plugins/qmldesigner/components/propertyeditor/propertyeditorqmlbackend.cpp src/plugins/qmldesigner/designercore/model/model.cpp Change-Id: I111b9140375b894a5487cc012b17cc32100bdb8d
43 lines
1.0 KiB
C++
43 lines
1.0 KiB
C++
// Copyright (C) 2020 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
|
|
|
#pragma once
|
|
|
|
#include <qmetatype.h>
|
|
#include <QDataStream>
|
|
#include <QVariant>
|
|
|
|
namespace QmlDesigner {
|
|
|
|
class PuppetToCreatorCommand
|
|
{
|
|
public:
|
|
enum Type {
|
|
Edit3DToolState,
|
|
Render3DView,
|
|
ActiveSceneChanged,
|
|
RenderModelNodePreviewImage,
|
|
Import3DSupport,
|
|
NodeAtPos,
|
|
None };
|
|
|
|
PuppetToCreatorCommand(Type type, const QVariant &data);
|
|
PuppetToCreatorCommand() = default;
|
|
|
|
Type type() const { return m_type; }
|
|
QVariant data() const { return m_data; }
|
|
|
|
private:
|
|
Type m_type = None;
|
|
QVariant m_data;
|
|
|
|
friend QDataStream &operator>>(QDataStream &in, PuppetToCreatorCommand &command);
|
|
};
|
|
|
|
QDataStream &operator<<(QDataStream &out, const PuppetToCreatorCommand &command);
|
|
QDataStream &operator>>(QDataStream &in, PuppetToCreatorCommand &command);
|
|
|
|
} // namespace QmlDesigner
|
|
|
|
Q_DECLARE_METATYPE(QmlDesigner::PuppetToCreatorCommand)
|