projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RowItem: Fix y-offset in point()
[pulseview.git]
/
pv
/
view
/
rowitem.cpp
diff --git
a/pv/view/rowitem.cpp
b/pv/view/rowitem.cpp
index 5666168e4ea590087d7ec82d5511cbef7a4a42b0..861d4adf05d28763640c12a2dac1a27d4f308f4c 100644
(file)
--- a/
pv/view/rowitem.cpp
+++ b/
pv/view/rowitem.cpp
@@
-61,7
+61,7
@@
void RowItem::set_visual_v_offset(int v_offset)
visual_v_offset_ = v_offset;
if (owner_)
visual_v_offset_ = v_offset;
if (owner_)
- owner_->appearance_changed(true, true);
+ owner_->
row_item_
appearance_changed(true, true);
}
void RowItem::force_to_v_offset(int v_offset)
}
void RowItem::force_to_v_offset(int v_offset)
@@
-115,9
+115,9
@@
int RowItem::get_visual_y() const
return visual_v_offset_ + owner_->owner_visual_v_offset();
}
return visual_v_offset_ + owner_->owner_visual_v_offset();
}
-QPoint RowItem::point() const
+QPoint RowItem::point(
const QRect &rect
) const
{
{
- return QPoint(
0, visual_v_offset
());
+ return QPoint(
rect.right(), get_visual_y
());
}
void RowItem::hover_point_changed()
}
void RowItem::hover_point_changed()