- connect(view, SIGNAL(hover_point_changed()),
- this, SLOT(on_hover_point_changed()));
+void RowItem::set_owner(RowItemOwner *owner)
+{
+ assert(owner_ || owner);
+ v_offset_animation_.stop();
+
+ if (owner_) {
+ const int owner_offset = owner_->owner_visual_v_offset();
+ layout_v_offset_ += owner_offset;
+ visual_v_offset_ += owner_offset;
+ }
+
+ owner_ = owner;
+
+ if (owner_) {
+ const int owner_offset = owner_->owner_visual_v_offset();
+ layout_v_offset_ -= owner_offset;
+ visual_v_offset_ -= owner_offset;
+ }
+}
+
+int RowItem::get_visual_y() const
+{
+ assert(owner_);
+ return visual_v_offset_ + owner_->owner_visual_v_offset();