X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fcursor.cpp;h=95134b775a1d3daaeaa13f3ff3ce0f51fe245441;hb=f0c9f81c03d2c1d1fa59c357a88d25f6a3128651;hp=1b30518e04024225586f8e7dbfcc073a57891989;hpb=8debe10dd47a5f519cd6e9069231f8e77c9c04e1;p=pulseview.git diff --git a/pv/view/cursor.cpp b/pv/view/cursor.cpp index 1b30518..95134b7 100644 --- a/pv/view/cursor.cpp +++ b/pv/view/cursor.cpp @@ -20,8 +20,8 @@ #include "cursor.h" -#include "ruler.h" #include "view.h" +#include "pv/util.h" #include #include @@ -33,7 +33,7 @@ #include -using namespace boost; +using boost::shared_ptr; namespace pv { namespace view { @@ -139,13 +139,13 @@ void Cursor::paint_label(QPainter &p, const QRect &rect, p.setPen(TextColour); p.drawText(r, Qt::AlignCenter | Qt::AlignVCenter, - Ruler::format_time(_time, prefix, 2)); + pv::util::format_time(_time, prefix, 2)); } void Cursor::compute_text_size(QPainter &p, unsigned int prefix) { _text_size = p.boundingRect(QRectF(), 0, - Ruler::format_time(_time, prefix, 2)).size(); + pv::util::format_time(_time, prefix, 2)).size(); } shared_ptr Cursor::get_other_cursor() const