* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "cursorpair.h"
+#include "cursorpair.hpp"
-#include "view.h"
-#include "pv/util.h"
+#include "view.hpp"
+#include "pv/util.hpp"
#include <cassert>
#include <algorithm>
right - left, height);
}
-void CursorPair::draw_markers(QPainter &p,
- const QRect &rect, unsigned int prefix)
+void CursorPair::draw_markers(QPainter &p, const QRect &rect)
{
assert(first_);
assert(second_);
+ const unsigned int prefix = view_.tick_prefix();
+
compute_text_size(p, prefix);
QRectF delta_rect(get_label_rect(rect));
}
// Paint the cursor markers
- first_->paint_label(p, rect, prefix);
- second_->paint_label(p, rect, prefix);
+ first_->paint_label(p, rect);
+ second_->paint_label(p, rect);
}
void CursorPair::draw_viewport_background(QPainter &p,