]> sigrok.org Git - pulseview.git/blobdiff - pv/view/ruler.h
Use a separate widget to hold the cursor labels.
[pulseview.git] / pv / view / ruler.h
index e7575db1d534fe8a37af3cde9f8f4f08ddef019b..cee76c685c5a5e3d40dbf8a5a78caa6e6b97a9a9 100644 (file)
@@ -28,9 +28,6 @@
 namespace pv {
 namespace view {
 
-class TimeMarker;
-class View;
-
 class Ruler : public MarginWidget
 {
        Q_OBJECT
@@ -45,18 +42,12 @@ private:
 public:
        Ruler(View &parent);
 
-       void clear_selection();
-
 public:
        QSize sizeHint() const;
 
 private:
        void paintEvent(QPaintEvent *event);
 
-       void mouseMoveEvent(QMouseEvent *e);
-       void mousePressEvent(QMouseEvent *e);
-       void mouseReleaseEvent(QMouseEvent *);
-
 private:
        /**
         * Draw a hover arrow under the cursor position.
@@ -65,11 +56,6 @@ private:
 
 private slots:
        void hover_point_changed();
-
-private:
-       std::weak_ptr<TimeMarker> _grabbed_marker;
-       QPoint _mouse_down_point;
-       bool _dragging;
 };
 
 } // namespace view