X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftimemarker.cpp;h=47ba34559a1dd15fa45fc2ff4d979d6a23f17dab;hp=4b8d2b527a5992dc43c4e58f15c68d02dcf0312d;hb=ec39632d1267a42cb858ac6ad7c98486886a46a0;hpb=c009650038207adcb66938170cbeb36bdf9ed63f diff --git a/pv/view/timemarker.cpp b/pv/view/timemarker.cpp index 4b8d2b52..47ba3455 100644 --- a/pv/view/timemarker.cpp +++ b/pv/view/timemarker.cpp @@ -40,7 +40,6 @@ namespace pv { namespace view { const int TimeMarker::ArrowSize = 4; -const int TimeMarker::Offset = 1; TimeMarker::TimeMarker(View &view, const QColor &colour, double time) : TimeItem(view), @@ -90,10 +89,10 @@ QRectF TimeMarker::label_rect(const QRectF &rect) const const float text_height = m.height(); const QSizeF label_size( - text_width + View::LabelPadding.width() * 2, - text_height + View::LabelPadding.height() * 2); + text_width + LabelPadding.width() * 2, + text_height + LabelPadding.height() * 2); const float top = rect.height() - label_size.height() - - TimeMarker::Offset - TimeMarker::ArrowSize - 0.5f; + TimeMarker::ArrowSize - 0.5f; const float height = label_size.height(); return QRectF(x - label_size.width() / 2, top,