]> sigrok.org Git - pulseview.git/blobdiff - pv/view/marginwidget.hpp
MarginWidget: Added item() method
[pulseview.git] / pv / view / marginwidget.hpp
index a97b22c1012eb859a6c5de4efabc882ed4b49cf5..bd74801bf4d04a7f71e6a3875e2b8ed5acf652e9 100644 (file)
@@ -47,12 +47,20 @@ 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.
         */
        void show_popup(const std::shared_ptr<ViewItem> &item);
 
+private:
+       void leaveEvent(QEvent *event);
+
 public Q_SLOTS:
        virtual void clear_selection();