projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76fea66
)
CursorHeader: Made drag position pixel perfect
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 13 Dec 2014 10:37:43 +0000
(10:37 +0000)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 20 Dec 2014 10:57:09 +0000
(10:57 +0000)
pv/view/cursorheader.cpp
patch
|
blob
|
history
diff --git
a/pv/view/cursorheader.cpp
b/pv/view/cursorheader.cpp
index f79a5785d558f56b54a60b37605614d08f9b16c9..c324410a75cb873aaed571cea402f23981ad36ec 100644
(file)
--- a/
pv/view/cursorheader.cpp
+++ b/
pv/view/cursorheader.cpp
@@
-100,7
+100,8
@@
void CursorHeader::mouseMoveEvent(QMouseEvent *e)
for (auto &i : items)
if (i->dragging())
i->set_time(view_.offset() +
- (i->drag_point().x() + delta) * view_.scale());
+ (i->drag_point().x() + delta - 0.5) *
+ view_.scale());
}
void CursorHeader::mousePressEvent(QMouseEvent *e)