From 2f14886db5e4a7eb067d3c6b3a8913efeb567024 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Sun, 12 Feb 2017 22:34:30 +0100 Subject: [PATCH] refs #879, added utility function toQList in collection --- src/blackmisc/collection.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/blackmisc/collection.h b/src/blackmisc/collection.h index fe12f1e87..995bd1751 100644 --- a/src/blackmisc/collection.h +++ b/src/blackmisc/collection.h @@ -290,6 +290,12 @@ namespace BlackMisc return CCollection::CContainerBase::removeIf(k0, v0, keysValues...); } + //! Convert to a QList + QList toQList() const + { + return this->to(QList()); + } + //! Test for equality. bool operator ==(const CCollection &other) const { return *pimpl() == *other.pimpl(); }