QmlJS: Fix compile using Qt5.6 on macOS

Change-Id: I3d8dd1ad1d149be24d9a3af1c9a5e8bfb4228c67
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Christian Stenger
2017-04-24 06:43:24 +02:00
parent dae2556d2f
commit e821b98c11

View File

@@ -83,7 +83,7 @@ QColor QmlJS::toQColor(const QString &qmlColorString)
bool ok;
const int alpha = qmlColorString.midRef(1, 2).toInt(&ok, 16);
if (ok) {
const QString name = qmlColorString.at(0) + qmlColorString.rightRef(6);
const QString name = qmlColorString.at(0) + qmlColorString.right(6);
if (QColor::isValidColor(name)) {
color.setNamedColor(name);
color.setAlpha(alpha);