X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fcursorheader.h;h=d3124be95baa53eeba4bb9be0951f7142f00c012;hb=18f7104f875a71bceeb152398b682737528a4ad7;hp=bab25191d3f9a0dc8d35ce15818cdd9a4cc9b60c;hpb=84a0d458a4b04141dd45af6dec44d36782ee163e;p=pulseview.git diff --git a/pv/view/cursorheader.h b/pv/view/cursorheader.h index bab25191..d3124be9 100644 --- a/pv/view/cursorheader.h +++ b/pv/view/cursorheader.h @@ -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 _grabbed_marker; QPoint _mouse_down_point; bool _dragging; + const int _textHeight; }; } // namespace view