]> sigrok.org Git - pulseview.git/commitdiff
TraceGroup: Added ungroup method
authorJoel Holdsworth <redacted>
Sun, 9 Nov 2014 10:21:20 +0000 (10:21 +0000)
committerJoel Holdsworth <redacted>
Wed, 19 Nov 2014 10:23:31 +0000 (10:23 +0000)
pv/view/tracegroup.cpp
pv/view/tracegroup.h

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)
index be4cbf1bef706b0dca132f50419acb136b17334e..d24647649a95a30755a1d80a7bc75010d7e1ea30 100644 (file)
@@ -117,6 +117,8 @@ public:
         */
        unsigned int depth() const;
 
+       void ungroup();
+
 public:
        void appearance_changed(bool label, bool content);