forked from qt-creator/qt-creator
Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
45 lines
1.3 KiB
C++
45 lines
1.3 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 <QDataStream>
|
|
#include <qmetatype.h>
|
|
#include <QString>
|
|
|
|
#include "nodeinstanceglobal.h"
|
|
|
|
namespace QmlDesigner {
|
|
|
|
class PropertyAbstractContainer;
|
|
|
|
QDataStream &operator<<(QDataStream &out, const PropertyAbstractContainer &container);
|
|
QDataStream &operator>>(QDataStream &in, PropertyAbstractContainer &container);
|
|
|
|
class PropertyAbstractContainer
|
|
{
|
|
|
|
friend QDataStream &operator<<(QDataStream &out, const PropertyAbstractContainer &container);
|
|
friend QDataStream &operator>>(QDataStream &in, PropertyAbstractContainer &container);
|
|
friend QDebug operator <<(QDebug debug, const PropertyAbstractContainer &container);
|
|
public:
|
|
PropertyAbstractContainer();
|
|
PropertyAbstractContainer(qint32 instanceId, const PropertyName &name, const TypeName &dynamicTypeName);
|
|
|
|
qint32 instanceId() const;
|
|
PropertyName name() const;
|
|
bool isDynamic() const;
|
|
TypeName dynamicTypeName() const;
|
|
|
|
private:
|
|
qint32 m_instanceId;
|
|
PropertyName m_name;
|
|
TypeName m_dynamicTypeName;
|
|
};
|
|
|
|
QDebug operator <<(QDebug debug, const PropertyAbstractContainer &container);
|
|
|
|
} // namespace QmlDesigner
|
|
|
|
Q_DECLARE_METATYPE(QmlDesigner::PropertyAbstractContainer)
|