X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fcursorheader.h;h=ff1759d47eb324b32e2ebfdb3948bc5674763d66;hb=4707a23dc7b76258f95d9522fbb6f4c7fd5cc558;hp=bab25191d3f9a0dc8d35ce15818cdd9a4cc9b60c;hpb=84a0d458a4b04141dd45af6dec44d36782ee163e;p=pulseview.git diff --git a/pv/view/cursorheader.h b/pv/view/cursorheader.h index bab2519..ff1759d 100644 --- a/pv/view/cursorheader.h +++ b/pv/view/cursorheader.h @@ -37,6 +37,8 @@ class CursorHeader : public MarginWidget { Q_OBJECT + static const int Padding; + public: CursorHeader(View &parent); @@ -51,11 +53,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