Fix compile error under Qt 5.0

QStringRef::toInt() and QStringRef::toDouble() are introduced in Qt 5.1
This commit is contained in:
luckyhacky
2013-11-14 20:51:44 +01:00
committed by Debao Zhang
parent b3b9cb7b05
commit 5359ac4c11
5 changed files with 43 additions and 43 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ QSharedPointer<SharedStrings> SharedStrings::loadFromXmlFile(QIODevice *device)
if (token == QXmlStreamReader::StartElement) {
if (reader.name() == QLatin1String("sst")) {
QXmlStreamAttributes attributes = reader.attributes();
count = attributes.value(QLatin1String("uniqueCount")).toInt();
count = attributes.value(QLatin1String("uniqueCount")).toString().toInt();
} else if (reader.name() == QLatin1String("si")) {
if (reader.readNextStartElement()) {
if (reader.name() == QLatin1String("t")) {