AndroidManifestEditorWidget: Fix build using Qt 5.0

QString::midRef is available in Qt 5.0, but QStringRef::toInt only was
added in 5.1.

Change-Id: I66666b00348c0535b4779206bd63e363f4b2c666
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Tobias Hunger
2013-11-14 12:26:36 +01:00
parent 4f80c9d03b
commit 62f056a29e

View File

@@ -872,7 +872,7 @@ int extractVersion(const QString &string)
int index = string.indexOf(QLatin1Char(':'));
if (index == -1)
return 0;
#if QT_VERSION < 0x050000
#if QT_VERSION < 0x050100
return string.mid(4, index - 4).toInt();
#else
return string.midRef(4, index - 4).toInt();