forked from qt-creator/qt-creator
QmlDesigner Fix for LineEdit
Change-Id: If6128c12527490f9c56c57f29a70a447fd456a89 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
b4340b3361
commit
090b39cc95
@@ -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("#"));
|
||||
|
Reference in New Issue
Block a user