mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
refs #649, default values for selectors based on own model set
This commit is contained in:
@@ -76,6 +76,8 @@ namespace BlackGui
|
|||||||
const CSimulatorInfo simulator = this->m_modelSetLoader.getSimulator();
|
const CSimulatorInfo simulator = this->m_modelSetLoader.getSimulator();
|
||||||
if (simulator.isSingleSimulator())
|
if (simulator.isSingleSimulator())
|
||||||
{
|
{
|
||||||
|
ui->comp_SimulatorSelector->setValue(simulator);
|
||||||
|
ui->le_Simulator->setText(simulator.toQString(true));
|
||||||
QTimer::singleShot(500, [this]()
|
QTimer::singleShot(500, [this]()
|
||||||
{
|
{
|
||||||
this->updateViewToCurrentModels();
|
this->updateViewToCurrentModels();
|
||||||
|
|||||||
@@ -71,8 +71,8 @@ namespace BlackGui
|
|||||||
connect(ui->pb_ReverseLookup, &QPushButton::pressed, this, &CModelMatcherComponent::ps_reverseLookup);
|
connect(ui->pb_ReverseLookup, &QPushButton::pressed, this, &CModelMatcherComponent::ps_reverseLookup);
|
||||||
connect(sGui->getWebDataServices(), &CWebDataServices::dataRead, this, &CModelMatcherComponent::ps_webDataRed);
|
connect(sGui->getWebDataServices(), &CWebDataServices::dataRead, this, &CModelMatcherComponent::ps_webDataRed);
|
||||||
|
|
||||||
const CSimulatorInfo sim(ui->comp_SimulatorSelector->getValue());
|
const CSimulatorInfo sim(this->m_modelSetLoader.getSimulator());
|
||||||
this->m_modelSetLoader.changeSimulator(sim);
|
ui->comp_SimulatorSelector->setValue(sim);
|
||||||
this->redisplay();
|
this->redisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user