#include <QPainter>
#include <QTextStream>
+using namespace std;
+
namespace pv {
namespace view {
division++;
}
+ // Draw the cursors
+ draw_cursors(p);
+
// Draw the hover mark
draw_hover_mark(p);
p.end();
}
+void Ruler::draw_cursors(QPainter &p)
+{
+ if(!_view.cursors_shown())
+ return;
+
+ const QRect r = rect();
+ pair<Cursor, Cursor> &cursors = _view.cursors();
+ cursors.first.paint_label(p, r);
+ cursors.second.paint_label(p, r);
+}
+
void Ruler::draw_hover_mark(QPainter &p)
{
const int x = _view.hover_point().x();