Skip to content
Snippets Groups Projects
Commit 0c444232 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Mapper in ModelTuningDelegate makes fitting crash and thus he is removed...

Mapper in ModelTuningDelegate makes fitting crash and thus he is removed (seems to be not necessary at all).
parent 7311a49a
No related branches found
No related tags found
No related merge requests found
......@@ -183,10 +183,16 @@ QWidget *ModelTuningDelegate::createEditor(QWidget *parent,
m_contentLayout->addWidget(m_valueBox);
m_contentLayout->addWidget(m_slider);
m_currentItem->mapper()->setOnValueChange(
[this](){
m_valueBox->setValue(m_currentItem->value().toDouble());
}, this);
// FIXME CHECK
// This mapping seems to be necessary only in the case when ModelTuningDelegate is active,
// when item changes its value from outside. It never happens it seems, so mapper
// is not necessary.
// If one ourcomment code below, the time life of ModelTuningDelegate will make application
// crash. Check this again and remove commented.
// m_currentItem->mapper()->setOnValueChange(
// [this](){
// m_valueBox->setValue(m_currentItem->value().toDouble());
// }, this);
m_contentWidget->setLayout(m_contentLayout);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment