mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-03 15:49:30 +08:00
Allow init by QList in CSequence
This commit is contained in:
@@ -59,6 +59,11 @@ namespace BlackMisc
|
|||||||
*/
|
*/
|
||||||
CSequence(std::initializer_list<T> il) : m_pimpl(new Pimpl<QList<T>>(QList<T>(il))) {}
|
CSequence(std::initializer_list<T> il) : m_pimpl(new Pimpl<QList<T>>(QList<T>(il))) {}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief By QList of type <T>.
|
||||||
|
*/
|
||||||
|
CSequence(const QList<T> &list) : m_pimpl(new Pimpl<QList<T>>(QList<T>(list))) {}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Copy constructor.
|
* \brief Copy constructor.
|
||||||
*/
|
*/
|
||||||
@@ -506,7 +511,7 @@ namespace BlackMisc
|
|||||||
QFuture<TargetContainer> sortedAsync(Predicate p) const
|
QFuture<TargetContainer> sortedAsync(Predicate p) const
|
||||||
{
|
{
|
||||||
TargetContainer result = *this;
|
TargetContainer result = *this;
|
||||||
QFuture<TargetContainer> f = QtConcurrent::run([=]()
|
QFuture<TargetContainer> f = QtConcurrent::run([ = ]()
|
||||||
{
|
{
|
||||||
result.sort(p);
|
result.sort(p);
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user