Commit c1d94545 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Use the parameter readable and translatable name instead of its formal name...

Use the parameter readable and translatable name instead of its formal name for the color edit widget
parent 0aa1ea30
Pipeline #6658 passed with stage
in 15 minutes
......@@ -89,7 +89,7 @@ ColorEditWidget::ColorEditWidget(std::shared_ptr<AssetParameterModel> model, QMo
: AbstractParamWidget(std::move(model), index, parent)
{
// setup the comment
QString name = m_model->data(m_index, AssetParameterModel::NameRole).toString();
QString name = m_model->data(m_index, Qt::DisplayRole).toString();
bool alphaEnabled = m_model->data(m_index, AssetParameterModel::AlphaRole).toBool();
QString color = m_model->data(m_index, AssetParameterModel::ValueRole).toString();
QString comment = m_model->data(m_index, AssetParameterModel::CommentRole).toString();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment