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

Do not setToolTip() for the same tooltip twice

parent 7c9294c6
Pipeline #6596 passed with stage
in 16 minutes and 1 second
......@@ -93,7 +93,6 @@ ColorEditWidget::ColorEditWidget(std::shared_ptr<AssetParameterModel> model, QMo
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();
setToolTip(comment);
auto *layout = new QHBoxLayout(this);
layout->setContentsMargins(0, 0, 0, 0);
......
......@@ -27,7 +27,6 @@ SlideWidget::SlideWidget(std::shared_ptr<AssetParameterModel> model, QModelIndex
setupUi(this);
QString name = m_model->data(m_index, AssetParameterModel::NameRole).toString();
QString comment = m_model->data(m_index, AssetParameterModel::CommentRole).toString();
setToolTip(comment);
slotRefresh();
connect(end_up, &QAbstractButton::clicked, this, &SlideWidget::updateValue);
......
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