diff options
author | Aleksei German <aleksei.german@qt.io> | 2019-09-04 15:33:05 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2019-09-05 12:03:17 +0000 |
commit | 090b39cc9521bf3f6887aecdcba75127ef685194 (patch) | |
tree | 96d26bf7c32349be1da531b59c8f1c811b1c8bda | |
parent | b4340b336101c6814e19f3d45c9606a8d2940b6e (diff) | |
download | qt-creator-090b39cc9521bf3f6887aecdcba75127ef685194.tar.gz |
QmlDesigner Fix for LineEdit
Change-Id: If6128c12527490f9c56c57f29a70a447fd456a89
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorcontextobject.cpp index d553ccca22..f9eb7465e2 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("#")); |