Fixed some formatting for T152 (before changing the classes)

This commit is contained in:
Klaus Basan
2017-09-18 13:17:13 +02:00
committed by Mathew Sutcliffe
parent 2d8c2ea930
commit 725341cdbe
5 changed files with 30 additions and 29 deletions

View File

@@ -210,7 +210,8 @@ namespace BlackGui
}
else
{
bool c = connect(this->m_modelLoader.get(), &IAircraftModelLoader::loadingFinished, this, &CDbOwnModelsComponent::ps_onOwnModelsLoadingFinished);
const bool c = connect(this->m_modelLoader.get(), &IAircraftModelLoader::loadingFinished,
this, &CDbOwnModelsComponent::ps_onOwnModelsLoadingFinished, Qt::QueuedConnection);
Q_ASSERT_X(c, Q_FUNC_INFO, "Failed connect for model loader");
Q_UNUSED(c);
this->setSaveFileName(simulator);
@@ -440,7 +441,7 @@ namespace BlackGui
return;
}
CLogMessage(this).info("Starting loading for %1") << simulator.toQString();
CLogMessage(this).info("Starting loading for '%1'") << simulator.toQString();
ui->tvp_OwnAircraftModels->showLoadIndicator();
Q_ASSERT_X(sGui && sGui->getWebDataServices(), Q_FUNC_INFO, "missing web data services");
this->m_modelLoader->startLoading(mode, static_cast<int (*)(CAircraftModelList &, bool)>(&CDatabaseUtils::consolidateModelsWithDbData), directory);

View File

@@ -138,13 +138,13 @@ namespace BlackGui
private:
QScopedPointer<Ui::CDbOwnModelsComponent> ui;
std::unique_ptr<BlackMisc::Simulation::IAircraftModelLoader> m_modelLoader; //!< read own aircraft models
std::unique_ptr<BlackMisc::Simulation::IAircraftModelLoader> m_modelLoader; //!< read own aircraft models, aka models on disk
BlackMisc::CDataReadOnly<BlackMisc::Simulation::Data::TModelCacheLastSelection> m_simulatorSelection { this }; //!< last selection
//! Init or change model loader
bool initModelLoader(const BlackMisc::Simulation::CSimulatorInfo &simulator);
//! File name for savinf
//! File name for saving as file
void setSaveFileName(const BlackMisc::Simulation::CSimulatorInfo &sim);
//! Directory selector for given simulator