projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MarginWidget: Removed unused geometry_updated signal
[pulseview.git]
/
pv
/
view
/
timemarker.cpp
diff --git
a/pv/view/timemarker.cpp
b/pv/view/timemarker.cpp
index 2dabaa0eb24346add1889975a687e639350b649a..5434203507fb63823e8f78fb760c5ec84b331539 100644
(file)
--- a/
pv/view/timemarker.cpp
+++ b/
pv/view/timemarker.cpp
@@
-27,8
+27,6
@@
#include <pv/widgets/popup.h>
#include <pv/widgets/popup.h>
-using namespace std;
-
namespace pv {
namespace view {
namespace pv {
namespace view {
@@
-52,6
+50,11
@@
float TimeMarker::get_x() const
return (_time - _view.offset()) / _view.scale();
}
return (_time - _view.offset()) / _view.scale();
}
+QPoint TimeMarker::point() const
+{
+ return QPoint(get_x(), 0);
+}
+
void TimeMarker::set_time(double time)
{
_time = time;
void TimeMarker::set_time(double time)
{
_time = time;