return shared_ptr<RowItem>();
}
-void Header::clear_selection()
-{
- for (auto &i : view_)
- i->select(false);
- update();
-}
-
void Header::paintEvent(QPaintEvent*)
{
// The trace labels are not drawn with the arrows exactly on the
std::shared_ptr<pv::view::ViewItem> get_mouse_over_item(
const QPoint &pt);
- void clear_selection();
-
private:
void paintEvent(QPaintEvent *event);
void MarginWidget::clear_selection()
{
+ const auto items = this->items();
+ for (auto &i : items)
+ i->select(false);
+ update();
}
} // namespace view
virtual void contextMenuEvent(QContextMenuEvent *event);
public Q_SLOTS:
- virtual void clear_selection();
+ void clear_selection();
Q_SIGNALS:
void selection_changed();
this, SLOT(hover_point_changed()));
}
-void Ruler::clear_selection()
-{
- const vector< shared_ptr<TimeItem> > items(view_.time_items());
- for (auto &i : items)
- i->select(false);
- update();
-}
-
QSize Ruler::sizeHint() const
{
const int text_height = calculate_text_height();
public:
Ruler(View &parent);
-public:
- void clear_selection();
-
public:
QSize sizeHint() const;