]> sigrok.org Git - pulseview.git/blobdiff - pv/view/ruler.hpp
MarginWidget: Moved in keyPressEvent
[pulseview.git] / pv / view / ruler.hpp
index 68e7eb5884fcc751d0723ec13afbb80253937a43..d13a31b8e7a0a0826b50b9244829429ee293e9a9 100644 (file)
@@ -48,9 +48,6 @@ private:
 public:
        Ruler(View &parent);
 
-public:
-       void clear_selection();
-
 public:
        QSize sizeHint() const;
 
@@ -62,6 +59,11 @@ public:
        QSize extended_size_hint() const;
 
 private:
+       /**
+        * Gets the time items.
+        */
+       std::vector< std::shared_ptr<pv::view::ViewItem> > items();
+
        /**
         * Gets the first view item which has a label that contains @c pt .
         * @param pt the point to search with.
@@ -75,15 +77,10 @@ private:
        void paintEvent(QPaintEvent *event);
 
        void mouseMoveEvent(QMouseEvent *e);
-       void mousePressEvent(QMouseEvent *e);
        void mouseReleaseEvent(QMouseEvent *);
 
        void mouseDoubleClickEvent(QMouseEvent *e);
 
-       void contextMenuEvent(QContextMenuEvent *event);
-
-       void keyPressEvent(QKeyEvent *e);
-
 private:
        /**
         * Draw a hover arrow under the cursor position.