forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user