mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 22:15:37 +08:00
refs #395, signatures for max.aircraft and max.range
(!) This in an intermediate step, the feature is not yet fully operational * max distance for rendering as simulator property * set max distance / aircraft from GUI As result of the latest meeting * changed CCallsignList to CCollection * fixed some warning with elevated compiler settings (e.g. removed qint values -> int)
This commit is contained in:
@@ -44,6 +44,9 @@ namespace BlackMisc
|
||||
|
||||
//! Initializer list constructor.
|
||||
QOrderedSet(std::initializer_list<T> il) { for (const auto &v : il) { insert(v); } }
|
||||
|
||||
//! Constructor from QList
|
||||
QOrderedSet(const QList<T> &list) { for (const auto &v : list) { insert(v); }}
|
||||
};
|
||||
|
||||
/*!
|
||||
@@ -85,6 +88,11 @@ namespace BlackMisc
|
||||
*/
|
||||
CCollection(const CCollection &other) : m_pimpl(other.pimpl() ? other.pimpl()->clone() : nullptr) {}
|
||||
|
||||
/*!
|
||||
* \brief Constructor from QList.
|
||||
*/
|
||||
CCollection(const QList<T> &list) : m_pimpl(new Pimpl<QOrderedSet<T>>(QOrderedSet<T>(list))) {}
|
||||
|
||||
/*!
|
||||
* \brief Move constructor.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user