Commit e635f60c 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 e4457e6a
Pipeline #6692 passed with stage
in 18 minutes and 12 seconds
...@@ -89,7 +89,7 @@ ColorEditWidget::ColorEditWidget(std::shared_ptr<AssetParameterModel> model, QMo ...@@ -89,7 +89,7 @@ ColorEditWidget::ColorEditWidget(std::shared_ptr<AssetParameterModel> model, QMo
: AbstractParamWidget(std::move(model), index, parent) : AbstractParamWidget(std::move(model), index, parent)
{ {
// setup the comment // 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(); bool alphaEnabled = m_model->data(m_index, AssetParameterModel::AlphaRole).toBool();
QString color = m_model->data(m_index, AssetParameterModel::ValueRole).toString(); QString color = m_model->data(m_index, AssetParameterModel::ValueRole).toString();
QString comment = m_model->data(m_index, AssetParameterModel::CommentRole).toString(); QString comment = m_model->data(m_index, AssetParameterModel::CommentRole).toString();
......
Supports Markdown
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