mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T261, CG in aircraft model
This commit is contained in:
committed by
Roland Winklmeier
parent
784cf29af5
commit
a8ab2a37b8
@@ -27,6 +27,7 @@
|
||||
|
||||
using namespace BlackMisc::Network;
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
@@ -472,6 +473,18 @@ namespace BlackMisc
|
||||
return c;
|
||||
}
|
||||
|
||||
int CAircraftModelList::setCG(const CLength &cg)
|
||||
{
|
||||
int c = 0;
|
||||
for (CAircraftModel &model : (*this))
|
||||
{
|
||||
if (model.getCG() == cg) { continue; }
|
||||
model.setCG(cg);
|
||||
c++;
|
||||
}
|
||||
return c;
|
||||
}
|
||||
|
||||
int CAircraftModelList::keepModelsWithString(const QStringList &modelStrings, Qt::CaseSensitivity sensitivity)
|
||||
{
|
||||
const int cs = this->size();
|
||||
|
||||
Reference in New Issue
Block a user