13#ifndef PINNED_ROW_VIEW_H
14#define PINNED_ROW_VIEW_H
76 bool isCornerView()
const {
return first_column_ == 0 && last_column_ >= 0; }
86 void mirrorSectionWidth(
int column,
int width);
96 void setHorizontalScrollValue(
int value);
106 void mouseReleaseEvent(QMouseEvent *event)
override;
115 void leaveEvent(QEvent *event)
override;
118 void contextMenuEvent(QContextMenuEvent *event)
override;
121 void wheelEvent(QWheelEvent *event)
override;
129 void drawRow(QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
169 mutable QSet<int> selected_frame_nums_cache_;
173 QWidget *right_divider_;
175 void applyColumnVisibility();
The main packet list view for displaying captured packets.
Definition packet_list.h:49
bool isCornerView() const
Whether this instance is currently acting as the "corner" widget (the frozen-column portion of the pi...
Definition pinned_row_view.h:76
void resizeEvent(QResizeEvent *event) override
Keeps the "corner" boundary-divider widget sized to this view's full height whenever it's resized.
Definition pinned_row_view.cpp:364
void drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Draws the selection and hover highlights (this view's model is a separate proxy, so it can't rely on ...
Definition pinned_row_view.cpp:234
void mousePressEvent(QMouseEvent *event) override
Forwards mouse presses to the primary packet list so that selection/marking behavior matches clicking...
Definition pinned_row_view.cpp:125
PinnedRowView(PacketList *packet_list, QWidget *parent=nullptr)
Constructs a PinnedRowView.
Definition pinned_row_view.cpp:31
void setColumnRange(int first, int last)
Restricts which columns this view renders.
Definition pinned_row_view.cpp:54
QSize sizeHint() const override
The height needed to show all of this model's rows stacked with no gaps, given the shared row height....
Definition pinned_row_view.cpp:111
void paintEvent(QPaintEvent *event) override
Refreshes selected_frame_nums_cache_ once per paint pass before deferring to QTreeView's own paintEve...
Definition pinned_row_view.cpp:223
void mouseMoveEvent(QMouseEvent *event) override
Reports the row under the mouse to the primary packet list so the hover highlight can be shown across...
Definition pinned_row_view.cpp:159
PacketList * packetList() const
The primary PacketList this view mirrors rows for. Used by MultiColorPacketDelegate to compute the sc...
Definition pinned_row_view.h:83