X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Ftimemarker.cpp;h=5434203507fb63823e8f78fb760c5ec84b331539;hb=0dda6fe595932b2e340930104fad8ac4fc574895;hp=2dabaa0eb24346add1889975a687e639350b649a;hpb=54c9f681a95aec6e746b9e5e567a2220ee8322b7;p=pulseview.git diff --git a/pv/view/timemarker.cpp b/pv/view/timemarker.cpp index 2dabaa0e..54342035 100644 --- a/pv/view/timemarker.cpp +++ b/pv/view/timemarker.cpp @@ -27,8 +27,6 @@ #include -using namespace std; - namespace pv { namespace view { @@ -52,6 +50,11 @@ float TimeMarker::get_x() const return (_time - _view.offset()) / _view.scale(); } +QPoint TimeMarker::point() const +{ + return QPoint(get_x(), 0); +} + void TimeMarker::set_time(double time) { _time = time;