Make member variable underscores a suffix instead of a prefix
[pulseview.git] / pv / view / cursorheader.h
index bab25191d3f9a0dc8d35ce15818cdd9a4cc9b60c..e655226597c3c12c0b01f5016ddf42445021f837 100644 (file)
@@ -37,6 +37,14 @@ class CursorHeader : public MarginWidget
 {
        Q_OBJECT
 
+       static const int Padding;
+
+       /**
+        * The vertical offset, relative to the bottom line of the widget,
+        * where the arrows of the cursor labels end.
+        */
+       static const int BaselineOffset;
+
 public:
        CursorHeader(View &parent);
 
@@ -51,11 +59,12 @@ private:
        void mousePressEvent(QMouseEvent *e);
        void mouseReleaseEvent(QMouseEvent *);
 
-       static const int CursorHeaderHeight;
+       int calculateTextHeight();
 
-       std::weak_ptr<TimeMarker> _grabbed_marker;
-       QPoint _mouse_down_point;
-       bool _dragging;
+       std::weak_ptr<TimeMarker> grabbed_marker_;
+       QPoint mouse_down_point_;
+       bool dragging_;
+       const int textHeight_;
 };
 
 } // namespace view