[instantiation] update bugui
This commit is contained in:
parent
6db3099e7e
commit
662345625f
3 changed files with 6 additions and 6 deletions
2
Hardware/3rdparty/bugui
vendored
2
Hardware/3rdparty/bugui
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit fd4f72a6b590a0a07eb1b1dc7842deddcf72d440
|
Subproject commit 556ec861b06f04f97bc80480b23286589a8390f9
|
|
@ -48,8 +48,6 @@ void DocumentPlugin::create(const QString& device_name)
|
||||||
{
|
{
|
||||||
if (ctrlr) cleanup();
|
if (ctrlr) cleanup();
|
||||||
|
|
||||||
if (device_name == "None") return;
|
|
||||||
|
|
||||||
auto& doc = m_context.document.model().modelDelegate();
|
auto& doc = m_context.document.model().modelDelegate();
|
||||||
auto scenar = safe_cast<Scenario::ScenarioDocumentModel*>(&doc);
|
auto scenar = safe_cast<Scenario::ScenarioDocumentModel*>(&doc);
|
||||||
auto cstr = &scenar->baseScenario().interval();
|
auto cstr = &scenar->baseScenario().interval();
|
||||||
|
|
|
@ -25,8 +25,8 @@ View::View()
|
||||||
|
|
||||||
connect(m_device,
|
connect(m_device,
|
||||||
&QComboBox::currentTextChanged,
|
&QComboBox::currentTextChanged,
|
||||||
this, &View::deviceChanged
|
this,
|
||||||
);
|
&View::deviceChanged);
|
||||||
|
|
||||||
lay->addRow(m_device);
|
lay->addRow(m_device);
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,9 @@ View::View()
|
||||||
|
|
||||||
void View::setDevice(const QString& device)
|
void View::setDevice(const QString& device)
|
||||||
{
|
{
|
||||||
// TODO : implement me
|
int idx = m_device->findText(device);
|
||||||
|
if (idx != m_device->currentIndex())
|
||||||
|
m_device->setCurrentIndex(idx);
|
||||||
}
|
}
|
||||||
|
|
||||||
QWidget* View::getWidget()
|
QWidget* View::getWidget()
|
||||||
|
|
Loading…
Add table
Reference in a new issue