forked from qt-creator/qt-creator
QmlDesigner.Instances: use TypeName instead of QString
A dynamicTypeName has to be always latin1 so we should use TypeName instead of QString. Change-Id: I06c945aa61f677788285cbc8ff8f5811f6c61b0b Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
17bbb4eb8c
commit
83e128ec79
@@ -39,7 +39,7 @@ PropertyAbstractContainer::PropertyAbstractContainer()
|
||||
{
|
||||
}
|
||||
|
||||
PropertyAbstractContainer::PropertyAbstractContainer(qint32 instanceId, const PropertyName &name, const QString &dynamicTypeName)
|
||||
PropertyAbstractContainer::PropertyAbstractContainer(qint32 instanceId, const PropertyName &name, const TypeName &dynamicTypeName)
|
||||
: m_instanceId(instanceId),
|
||||
m_name(name),
|
||||
m_dynamicTypeName(dynamicTypeName)
|
||||
@@ -61,7 +61,7 @@ bool PropertyAbstractContainer::isDynamic() const
|
||||
return !m_dynamicTypeName.isEmpty();
|
||||
}
|
||||
|
||||
QString PropertyAbstractContainer::dynamicTypeName() const
|
||||
TypeName PropertyAbstractContainer::dynamicTypeName() const
|
||||
{
|
||||
return m_dynamicTypeName;
|
||||
}
|
||||
|
||||
@@ -52,17 +52,17 @@ class PropertyAbstractContainer
|
||||
friend QDebug operator <<(QDebug debug, const PropertyAbstractContainer &container);
|
||||
public:
|
||||
PropertyAbstractContainer();
|
||||
PropertyAbstractContainer(qint32 instanceId, const PropertyName &name, const QString &dynamicTypeName);
|
||||
PropertyAbstractContainer(qint32 instanceId, const PropertyName &name, const TypeName &dynamicTypeName);
|
||||
|
||||
qint32 instanceId() const;
|
||||
PropertyName name() const;
|
||||
bool isDynamic() const;
|
||||
QString dynamicTypeName() const;
|
||||
TypeName dynamicTypeName() const;
|
||||
|
||||
private:
|
||||
qint32 m_instanceId;
|
||||
PropertyName m_name;
|
||||
QString m_dynamicTypeName;
|
||||
TypeName m_dynamicTypeName;
|
||||
};
|
||||
|
||||
QDebug operator <<(QDebug debug, const PropertyAbstractContainer &container);
|
||||
|
||||
Reference in New Issue
Block a user