projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DecodeTrace: Use qreal instead of int for annotation drawing
[pulseview.git]
/
pv
/
views
/
trace
/
header.cpp
diff --git
a/pv/views/trace/header.cpp
b/pv/views/trace/header.cpp
index 58096dc07df4893687724b8f35c7b58a096925ee..10fc7eb9fc3600920f50280f7d521685abe97e88 100644
(file)
--- a/
pv/views/trace/header.cpp
+++ b/
pv/views/trace/header.cpp
@@
-103,7
+103,7
@@
void Header::paintEvent(QPaintEvent*)
stable_sort(items.begin(), items.end(),
[](const shared_ptr<RowItem> &a, const shared_ptr<RowItem> &b) {
stable_sort(items.begin(), items.end(),
[](const shared_ptr<RowItem> &a, const shared_ptr<RowItem> &b) {
- return a->
point(QRect()).y() < b->
point(QRect()).y(); });
+ return a->
drag_point(QRect()).y() < b->drag_
point(QRect()).y(); });
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing);
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing);