]> sigrok.org Git - pulseview.git/blobdiff - pv/view/marginwidget.hpp
MarginWidget: Added item() method
[pulseview.git] / pv / view / marginwidget.hpp
index de5c866f3077fcc12acb8028167dc4de0711a69d..bd74801bf4d04a7f71e6a3875e2b8ed5acf652e9 100644 (file)
@@ -47,6 +47,11 @@ public:
        virtual QSize extended_size_hint() const = 0;
 
 protected:
+       /**
+        * Gets the items in the margin widget.
+        */
+       virtual std::vector< std::shared_ptr<pv::view::ViewItem> > items() = 0;
+
        /**
         * Shows the popup of a the specified @c ViewItem .
         * @param item The item to show the popup for.