Commit 62f056a2 authored by Tobias Hunger's avatar Tobias Hunger

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: default avatarDaniel Teske <daniel.teske@digia.com>
parent 4f80c9d0
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment