aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/designercore/metainfo/itemlibraryinfo.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2013-03-05 12:19:19 +0100
committerThomas Hartmann <Thomas.Hartmann@digia.com>2013-03-25 13:35:11 +0100
commitd204ee0b4325a639ea54ffcb8274877720606f31 (patch)
tree3c570a3d136add4b7476f62e31dd76d29a882f2e /src/plugins/qmldesigner/designercore/metainfo/itemlibraryinfo.cpp
parentdd9b1687026c3fea4938e5e65dc7e1ba3fd5ba6a (diff)
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> (cherry picked from commit ee4bf638cad9bcf303c8c6ad1f922c33dc021964) Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Diffstat (limited to 'src/plugins/qmldesigner/designercore/metainfo/itemlibraryinfo.cpp')
-rw-r--r--src/plugins/qmldesigner/designercore/metainfo/itemlibraryinfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/qmldesigner/designercore/metainfo/itemlibraryinfo.cpp b/src/plugins/qmldesigner/designercore/metainfo/itemlibraryinfo.cpp
index 0063a1377d..e137f6f3d6 100644
--- a/src/plugins/qmldesigner/designercore/metainfo/itemlibraryinfo.cpp
+++ b/src/plugins/qmldesigner/designercore/metainfo/itemlibraryinfo.cpp
@@ -42,7 +42,7 @@ public:
ItemLibraryEntryData() : majorVersion(-1), minorVersion(-1)
{ }
QString name;
- QString typeName;
+ TypeName typeName;
QString category;
int majorVersion;
int minorVersion;
@@ -113,7 +113,7 @@ QString ItemLibraryEntry::name() const
return m_data->name;
}
-QString ItemLibraryEntry::typeName() const
+TypeName ItemLibraryEntry::typeName() const
{
return m_data->typeName;
}
@@ -168,7 +168,7 @@ void ItemLibraryEntry::setName(const QString &name)
m_data->name = name;
}
-void ItemLibraryEntry::setType(const QString &typeName, int majorVersion, int minorVersion)
+void ItemLibraryEntry::setType(const TypeName &typeName, int majorVersion, int minorVersion)
{
m_data->typeName = typeName;
m_data->majorVersion = majorVersion;
@@ -195,7 +195,7 @@ void ItemLibraryEntry::setForceImport(bool b)
m_data->forceImport = b;
}
-void ItemLibraryEntry::addProperty(QString &name, QString &type, QVariant &value)
+void ItemLibraryEntry::addProperty(PropertyName &name, QString &type, QVariant &value)
{
Property property;
property.set(name, type, value);