mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #911, paste support in forms
* added paste icon * base class utility functions * implemented paste for livery, airline and aircraft ICAO
This commit is contained in:
committed by
Mathew Sutcliffe
parent
5e69be6208
commit
fc3a36512e
@@ -62,6 +62,11 @@ namespace BlackGui
|
||||
return true;
|
||||
}
|
||||
|
||||
void CDistributorForm::jsonPasted(const QString &json)
|
||||
{
|
||||
Q_UNUSED(json);
|
||||
}
|
||||
|
||||
CDistributor CDistributorForm::getValue() const
|
||||
{
|
||||
CDistributor distributor(ui->distributor_Selector->getDistributor());
|
||||
@@ -126,9 +131,9 @@ namespace BlackGui
|
||||
}
|
||||
else if (variantDropped.canConvert<CDistributorList>())
|
||||
{
|
||||
CDistributorList icaoList(variantDropped.value<CDistributorList>());
|
||||
if (icaoList.isEmpty()) { return; }
|
||||
distributor = icaoList.front();
|
||||
const CDistributorList icaoList(variantDropped.value<CDistributorList>());
|
||||
if (icaoList.isEmpty()) { return; }
|
||||
distributor = icaoList.front();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -136,6 +141,5 @@ namespace BlackGui
|
||||
}
|
||||
this->setValue(distributor);
|
||||
}
|
||||
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user