Skip to content
Snippets Groups Projects
Commit 7e20b217 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: fix for alpha == 0

"transparent" is an extra case.

Task-Number: QTCREATORBUG-5727
Change-Id: If28e8735aacb3dd464b61fb7ed65918d8ea465b2
Reviewed-on: http://codereview.qt.nokia.com/2627


Reviewed-by: default avatarMarco Bubke <marco.bubke@nokia.com>
parent 867178cf
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ static void fixAmbigousColorNames(const QmlDesigner::ModelNode &modelNode, const
color = QColor(color.name());
color.setAlpha(alpha);
*value = color;
} else {
} else if (value->toString() != QLatin1String("transparent")) {
*value = QColor(value->toString()).name();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment