Update widgets when switching Invoke Object source

This commit is contained in:
G.K.MacGregor
2021-03-18 19:22:06 +00:00
parent fc8b969af0
commit 578aca4281

View File

@@ -240,8 +240,7 @@ X26DockWidget::X26DockWidget(TeletextWidget *parent): QDockWidget(parent)
m_objectSourceComboBox->addItem("POP"); m_objectSourceComboBox->addItem("POP");
m_objectSourceComboBox->addItem("GPOP"); m_objectSourceComboBox->addItem("GPOP");
invokeObjectLayout->addWidget(m_objectSourceComboBox); invokeObjectLayout->addWidget(m_objectSourceComboBox);
// FIXME combine this with bit setting connect(m_objectSourceComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), [=](const int value) { updateModelFromCookedWidget(value, Qt::UserRole+1); updateCookedTripletParameters(m_x26View->currentIndex()); } );
connect(m_objectSourceComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), [=](const int value) { m_invokeObjectSourceStackedLayout->setCurrentIndex(value != 0); updateModelFromCookedWidget(value, Qt::UserRole+1); } );
// Object required at which levels // Object required at which levels
m_objectRequiredAtL2p5CheckBox = new QCheckBox("L2.5"); m_objectRequiredAtL2p5CheckBox = new QCheckBox("L2.5");