forked from qt-creator/qt-creator
QmlJS: Fix compile using Qt5.6 on macOS
Change-Id: I3d8dd1ad1d149be24d9a3af1c9a5e8bfb4228c67 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user