projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use device::Devices to represent sigrok Devices
[pulseview.git]
/
pv
/
view
/
rowitem.cpp
diff --git
a/pv/view/rowitem.cpp
b/pv/view/rowitem.cpp
index be694a970503e98b7d4fa718ecb27944235a1bd2..3a002bbc2a4eedf601d69114da62cfd68879f976 100644
(file)
--- a/
pv/view/rowitem.cpp
+++ b/
pv/view/rowitem.cpp
@@
-68,6
+68,11
@@
void RowItem::force_to_v_offset(int v_offset)
{
v_offset_animation_.stop();
layout_v_offset_ = visual_v_offset_ = v_offset;
{
v_offset_animation_.stop();
layout_v_offset_ = visual_v_offset_ = v_offset;
+
+ if (owner_) {
+ owner_->row_item_appearance_changed(true, true);
+ owner_->extents_changed(false, true);
+ }
}
void RowItem::animate_to_layout_v_offset()
}
void RowItem::animate_to_layout_v_offset()
@@
-115,9
+120,15
@@
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
+void RowItem::drag_by(const QPoint &delta)
+{
+ force_to_v_offset(drag_point_.y() + delta.y() -
+ owner_->owner_visual_v_offset());
+}
+
+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()