QmlDesigner Fix for LineEdit

Change-Id: If6128c12527490f9c56c57f29a70a447fd456a89
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Aleksei German
2019-09-04 15:33:05 +02:00
committed by Thomas Hartmann
parent b4340b3361
commit 090b39cc95

View File

@@ -98,7 +98,7 @@ QString PropertyEditorContextObject::convertColorToString(const QColor &color)
QString colorString = color.name();
if (color.alpha() != 255) {
const QString hexAlpha = QString::number(color.alpha(), 16);
QString hexAlpha = QString("%1").arg(color.alpha(), 2, 16, QLatin1Char('0'));
colorString.remove(0,1);
colorString.prepend(hexAlpha);
colorString.prepend(QStringLiteral("#"));