mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Functions to select distributor/ICAO in component
This commit is contained in:
committed by
Mat Sutcliffe
parent
30b65d6c36
commit
5eeb29bafe
@@ -68,6 +68,12 @@ namespace BlackGui
|
||||
return ui->tvp_Distributors->selectedObjects();
|
||||
}
|
||||
|
||||
bool CDbDistributorComponent::selectDistributor(const CDistributor &distributor)
|
||||
{
|
||||
if (ui->tvp_Distributors->isEmpty() || !distributor.isLoadedFromDb()) { return false; }
|
||||
return ui->tvp_Distributors->selectDbKey(distributor.getDbKey());
|
||||
}
|
||||
|
||||
bool CDbDistributorComponent::hasSelectedDistributors() const
|
||||
{
|
||||
return ui->tvp_Distributors->hasSelection();
|
||||
|
||||
Reference in New Issue
Block a user