Ref T280, QHash for aircraft and models and some minor improvements

* CValueObject::comparePropertyByIndex
* bool "true" if value has been changed
This commit is contained in:
Klaus Basan
2018-06-13 23:14:26 +02:00
parent 9777bf963c
commit d49831abc4
6 changed files with 38 additions and 3 deletions

View File

@@ -30,6 +30,7 @@
#include <QString>
#include <QStringList>
#include <Qt>
#include <QHash>
namespace BlackMisc
{
@@ -353,10 +354,15 @@ namespace BlackMisc
//! \remark checking for some criteria in the given model
QString extCoverageSummary(const CAircraftModel &checkModel, const QString &separator = "\n") const;
};
//! Model per callsign
using CAircraftModelPerCallsign = QHash<Aviation::CCallsign, CAircraftModel>;
} // ns
} // ns
Q_DECLARE_METATYPE(BlackMisc::Simulation::CAircraftModelList)
Q_DECLARE_METATYPE(BlackMisc::Simulation::CAircraftModelPerCallsign)
Q_DECLARE_METATYPE(BlackMisc::CCollection<BlackMisc::Simulation::CAircraftModel>)
Q_DECLARE_METATYPE(BlackMisc::CSequence<BlackMisc::Simulation::CAircraftModel>)