mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
refs #391, allow to send aircraft parts from GUI
* GUI component for aircraft parts * remote aircraft selector component * Adjusted GUI for internals component * Enable / disable debug messages from GUI * Allow to init engines directly * Removed unused async sort in sequence In same step fixed found issues in interpolator * allow to set max rendered aircraft
This commit is contained in:
@@ -503,22 +503,6 @@ namespace BlackMisc
|
||||
return result;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Return a copy as derived container sorted by a given comparator predicate.
|
||||
* \remarks Sorts in background.
|
||||
*/
|
||||
template <class TargetContainer, class Predicate>
|
||||
QFuture<TargetContainer> sortedAsync(Predicate p) const
|
||||
{
|
||||
TargetContainer result = *this;
|
||||
QFuture<TargetContainer> f = QtConcurrent::run([ = ]()
|
||||
{
|
||||
result.sort(p);
|
||||
return result;
|
||||
});
|
||||
return f;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Return a copy sorted by some particular key(s).
|
||||
* \param key1 A pointer to a member function of T.
|
||||
|
||||
Reference in New Issue
Block a user