From: Joel Holdsworth Date: Sun, 9 Nov 2014 10:21:20 +0000 (+0000) Subject: TraceGroup: Added ungroup method X-Git-Tag: pulseview-0.3.0~446 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5d6b95f9f30e3ef77fea3c59284704715a256dd9;p=pulseview.git TraceGroup: Added ungroup method --- diff --git a/pv/view/tracegroup.cpp b/pv/view/tracegroup.cpp index c2d3c060..765f0973 100644 --- a/pv/view/tracegroup.cpp +++ b/pv/view/tracegroup.cpp @@ -195,7 +195,7 @@ unsigned int TraceGroup::depth() const return _owner ? _owner->depth() + 1 : 0; } -void TraceGroup::on_ungroup() +void TraceGroup::ungroup() { const vector< shared_ptr > items( child_items().begin(), child_items().end()); @@ -207,6 +207,11 @@ void TraceGroup::on_ungroup() _owner->remove_child_item(shared_from_this()); } +void TraceGroup::on_ungroup() +{ + ungroup(); +} + void TraceGroup::appearance_changed(bool label, bool content) { if (_owner) diff --git a/pv/view/tracegroup.h b/pv/view/tracegroup.h index be4cbf1b..d2464764 100644 --- a/pv/view/tracegroup.h +++ b/pv/view/tracegroup.h @@ -117,6 +117,8 @@ public: */ unsigned int depth() const; + void ungroup(); + public: void appearance_changed(bool label, bool content);