forked from qt-creator/qt-creator
QmlDesigner: Type of the propertyname is now PropertyName
And PropertyName is a typedef for QByteArray. Because we don't use the features of QString and the source would be cluttered with QLatin1Strings we changed the property name to QByteArray. Change-Id: Ib70ef136bbc411504b450456bd9bb705ae93dd25 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -35,8 +35,9 @@
|
||||
#include <QVariant>
|
||||
#include <QString>
|
||||
|
||||
namespace QmlDesigner {
|
||||
#include "nodeinstanceglobal.h"
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
class PropertyValueContainer
|
||||
{
|
||||
@@ -44,19 +45,19 @@ class PropertyValueContainer
|
||||
|
||||
public:
|
||||
PropertyValueContainer();
|
||||
PropertyValueContainer(qint32 instanceId, const QString &name, const QVariant &value, const QString &dynamicTypeName);
|
||||
PropertyValueContainer(qint32 instanceId, const PropertyName &name, const QVariant &value, const TypeName &dynamicTypeName);
|
||||
|
||||
qint32 instanceId() const;
|
||||
QString name() const;
|
||||
PropertyName name() const;
|
||||
QVariant value() const;
|
||||
bool isDynamic() const;
|
||||
QString dynamicTypeName() const;
|
||||
TypeName dynamicTypeName() const;
|
||||
|
||||
private:
|
||||
qint32 m_instanceId;
|
||||
QString m_name;
|
||||
PropertyName m_name;
|
||||
QVariant m_value;
|
||||
QString m_dynamicTypeName;
|
||||
TypeName m_dynamicTypeName;
|
||||
};
|
||||
|
||||
QDataStream &operator<<(QDataStream &out, const PropertyValueContainer &container);
|
||||
|
||||
Reference in New Issue
Block a user