mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 21:45:34 +08:00
Ref T246, unified signal handling in model caches and loader
* setSimulator as checked, simulatorChanged as unchecked version * some renamings * made some functions private, turned public slots -> public
This commit is contained in:
@@ -859,12 +859,12 @@ namespace BlackGui
|
||||
void CDbMappingComponent::setOwnModelSetSimulator(const CSimulatorInfo &simulator)
|
||||
{
|
||||
Q_ASSERT_X(simulator.isSingleSimulator(), Q_FUNC_INFO, "Need single simulator");
|
||||
ui->comp_OwnModelSet->setModelSetSimulator(simulator);
|
||||
ui->comp_OwnModelSet->setSimulator(simulator);
|
||||
}
|
||||
|
||||
CAircraftModelList CDbMappingComponent::getOwnModelSet() const
|
||||
{
|
||||
return ui->comp_OwnModelSet->getModelSet();
|
||||
return ui->comp_OwnModelSet->getModelSetFromView();
|
||||
}
|
||||
|
||||
CStatusMessage CDbMappingComponent::stashModel(const CAircraftModel &model, bool replace)
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace BlackGui
|
||||
void CModelMatcherComponent::onSimulatorChanged(const BlackMisc::Simulation::CSimulatorInfo &simulator)
|
||||
{
|
||||
Q_ASSERT_X(simulator.isSingleSimulator(), Q_FUNC_INFO, "Need single simulator");
|
||||
m_modelSetLoader.changeSimulator(simulator);
|
||||
m_modelSetLoader.setSimulator(simulator);
|
||||
m_matcher.setModelSet(m_modelSetLoader.getAircraftModels(), simulator);
|
||||
this->redisplay();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user