X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Ftracetreeitemowner.hpp;h=b26b1e7e46d3e81846f96fb5b2682e19c48f857a;hb=f1a7311612c1289a672074cccca2ce72daf924eb;hp=905746d6c5f956ab2787886efcb4b14ccfeea5a1;hpb=af503b104d890a357c736c678bb00296d889c090;p=pulseview.git diff --git a/pv/view/tracetreeitemowner.hpp b/pv/view/tracetreeitemowner.hpp index 905746d6..b26b1e7e 100644 --- a/pv/view/tracetreeitemowner.hpp +++ b/pv/view/tracetreeitemowner.hpp @@ -118,17 +118,20 @@ public: */ const_iterator end() const; - /** - * Makes a list of row item owners of all the row items that are - * decendants of this item. - */ - std::set< TraceTreeItemOwner* > list_row_item_owners(); - /** * Creates a list of decendant signals filtered by type. */ template - std::set< std::shared_ptr > list_by_type(); + std::vector< std::shared_ptr > list_by_type() { + std::vector< std::shared_ptr > items; + for (const auto &r : *this) { + std::shared_ptr p = std::dynamic_pointer_cast(r); + if (p) + items.push_back(p); + } + + return items; + } /** * Computes the vertical extents of the contents of this row item owner.