]> sigrok.org Git - pulseview.git/blobdiff - pv/view/ruler.h
Don't allow disabled probes to be selected
[pulseview.git] / pv / view / ruler.h
index 7514aeca86672d849f82019b1c257232f6afba16..dc4e7bb73139530cf870dacb5f06010e7c432050 100644 (file)
@@ -36,6 +36,7 @@ class Ruler : public MarginWidget
        Q_OBJECT
 
 private:
+       static const int RulerHeight;
        static const int MinorTickSubdivision;
        static const int ScaleUnits[3];
 
@@ -52,6 +53,9 @@ public:
        static QString format_time(double t, unsigned int prefix,
                unsigned precision = 0);
 
+public:
+       QSize sizeHint() const;
+
 private:
        void paintEvent(QPaintEvent *event);
 
@@ -70,6 +74,8 @@ private slots:
 
 private:
        boost::weak_ptr<TimeMarker> _grabbed_marker;
+       QPoint _mouse_down_point;
+       bool _dragging;
 };
 
 } // namespace view