aboutsummaryrefslogtreecommitdiff
path: root/src/corelib/style/mstylesheetattribute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/style/mstylesheetattribute.cpp')
-rw-r--r--src/corelib/style/mstylesheetattribute.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/corelib/style/mstylesheetattribute.cpp b/src/corelib/style/mstylesheetattribute.cpp
index 0b6f6321..04e19d43 100644
--- a/src/corelib/style/mstylesheetattribute.cpp
+++ b/src/corelib/style/mstylesheetattribute.cpp
@@ -265,7 +265,7 @@ namespace {
static QtDatatypeConverter DataTypeConverter;
-MStyleSheetAttribute::MStyleSheetAttribute(const QByteArray& name, const QByteArray& value, qint64 position)
+MStyleSheetAttribute::MStyleSheetAttribute(MUniqueStringCache::Index name, const QByteArray& value, qint64 position)
: name(name), value(value), position(position)
{
}
@@ -279,6 +279,11 @@ MStyleSheetAttribute::MStyleSheetAttribute(const MStyleSheetAttribute &other)
QByteArray MStyleSheetAttribute::getName()
{
+ return MUniqueStringCache::indexToString(name);
+}
+
+MUniqueStringCache::Index MStyleSheetAttribute::getNameID()
+{
return name;
}
@@ -811,7 +816,7 @@ bool MStyleSheetAttribute::writeAttribute(const QString &filename,
}
}
- MStyleSheetParser::outputParseError(filename, "Not a valid attribute(" + QLatin1String(property.typeName()) + "): " + name + ": " + value, MStyleSheetParser::getLineNum(filename, position));
+ MStyleSheetParser::outputParseError(filename, "Not a valid attribute(" + QLatin1String(property.typeName()) + "): " + MUniqueStringCache::indexToString(name) + " : " + value, MStyleSheetParser::getLineNum(filename, position));
return false;
}