From 090b39cc9521bf3f6887aecdcba75127ef685194 Mon Sep 17 00:00:00 2001 From: Aleksei German Date: Wed, 4 Sep 2019 15:33:05 +0200 Subject: [PATCH] QmlDesigner Fix for LineEdit Change-Id: If6128c12527490f9c56c57f29a70a447fd456a89 Reviewed-by: Thomas Hartmann --- .../components/propertyeditor/propertyeditorcontextobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp index d553ccca222..f9eb7465e22 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp @@ -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("#"));