#include "cursorpair.h"
-#include "ruler.h"
#include "view.h"
+#include "pv/util.h"
+#include <cassert>
#include <algorithm>
-using namespace boost;
-using namespace std;
+using std::max;
+using std::make_pair;
+using std::min;
+using std::shared_ptr;
+using std::pair;
namespace pv {
namespace view {
p.setPen(Cursor::TextColour);
p.drawText(text_rect, Qt::AlignCenter | Qt::AlignVCenter,
- Ruler::format_time(_second->time() - _first->time(), prefix, 2));
+ pv::util::format_time(_second->time() - _first->time(), prefix, 2));
}
// Paint the cursor markers
assert(_first);
assert(_second);
- _text_size = p.boundingRect(QRectF(), 0, Ruler::format_time(
+ _text_size = p.boundingRect(QRectF(), 0, pv::util::format_time(
_second->time() - _first->time(), prefix, 2)).size();
}