Skip to content

Commit

Permalink
QmlJS: Fix compile using Qt5.6 on macOS
Browse files Browse the repository at this point in the history
Change-Id: I3d8dd1ad1d149be24d9a3af1c9a5e8bfb4228c67
Reviewed-by: Orgad Shaneh <[email protected]>
  • Loading branch information
Christian Stenger committed Apr 24, 2017
1 parent dae2556 commit e821b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/qmljs/qmljsutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e821b98

Please sign in to comment.