TraceGroup: Added ungroup method
[pulseview.git] / pv / view / tracegroup.cpp
index c2d3c0609db498e0fd2c7b164f2118b84799c6c3..765f0973229739e4cf7114333c2d58da70f3d1aa 100644 (file)
@@ -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<RowItem> > 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)