Header::Header(View &parent) :
MarginWidget(parent)
{
- connect(&view_, SIGNAL(signals_moved()),
- this, SLOT(on_signals_moved()));
}
QSize Header::sizeHint() const
item_owner->restack_items();
for (const auto &r : *item_owner)
r->animate_to_layout_v_offset();
- signals_moved();
}
void Header::paintEvent(QPaintEvent*)
on_ungroup();
}
-void Header::on_signals_moved()
-{
- update();
-}
-
void Header::on_group()
{
vector< shared_ptr<RowItem> > selected_items(
void keyPressEvent(QKeyEvent *e);
private Q_SLOTS:
- void on_signals_moved();
-
void on_group();
void on_ungroup();
-
-Q_SIGNALS:
- void signals_moved();
};
} // namespace view
{
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()
connect(&session_, SIGNAL(frame_ended()),
this, SLOT(data_updated()));
- connect(header_, SIGNAL(signals_moved()),
- this, SLOT(on_signals_moved()));
-
connect(header_, SIGNAL(selection_changed()),
ruler_, SLOT(clear_selection()));
connect(ruler_, SIGNAL(selection_changed()),
viewport_->update();
}
-void View::on_signals_moved()
-{
- update_scroll();
- signals_moved();
-}
-
void View::process_sticky_events()
{
if (sticky_events_ & RowItemHExtentsChanged)
update_layout();
- if (sticky_events_ & RowItemVExtentsChanged)
+ if (sticky_events_ & RowItemVExtentsChanged) {
restack_all_row_items();
+ update_scroll();
+ }
// Clear the sticky events
sticky_events_ = 0;
Q_SIGNALS:
void hover_point_changed();
- void signals_moved();
-
void selection_changed();
void scale_offset_changed();
void signals_changed();
void data_updated();
- void on_signals_moved();
-
void process_sticky_events();
void on_hover_point_changed();
setAutoFillBackground(true);
setBackgroundRole(QPalette::Base);
-
- connect(&view_, SIGNAL(signals_moved()),
- this, SLOT(on_signals_moved()));
}
void Viewport::paintEvent(QPaintEvent*)
return true;
}
-void Viewport::on_signals_moved()
-{
- update();
-}
-
} // namespace view
} // namespace pv
void wheelEvent(QWheelEvent *event);
bool touchEvent(QTouchEvent *e);
-private Q_SLOTS:
- void on_signals_moved();
-
private:
QPoint mouse_down_point_;
double mouse_down_offset_;