refs #768, allow to access view and filter of components

(required in wizard)
This commit is contained in:
Klaus Basan
2016-10-17 03:23:11 +02:00
parent dfcde1158e
commit 80bbed96d4
8 changed files with 46 additions and 10 deletions

View File

@@ -44,11 +44,21 @@ namespace BlackGui
CDbLiveryComponent::~CDbLiveryComponent()
{ }
CLiveryView *CDbLiveryComponent::view()
{
return ui->tvp_Liveries;
}
void CDbLiveryComponent::filter(const BlackMisc::Aviation::CLivery &livery)
{
ui->filter_Livery->filter(livery);
}
void CDbLiveryComponent::filterByAirline(const BlackMisc::Aviation::CAirlineIcaoCode &icao)
{
ui->filter_Livery->filter(icao);
}
void CDbLiveryComponent::ps_liveriesRead(CEntityFlags::Entity entity, CEntityFlags::ReadState readState, int count)
{
Q_UNUSED(count);
@@ -63,7 +73,6 @@ namespace BlackGui
if (!sGui) { return; }
sGui->getWebDataServices()->triggerReloadFromDb(CEntityFlags::LiveryEntity);
}
} // ns
} // ns