13#ifndef PINNED_ROW_VIEW_H
14#define PINNED_ROW_VIEW_H
18#include <QPersistentModelIndex>
76 bool isCornerView()
const {
return first_column_ == 0 && last_column_ >= 0; }
86 void mirrorSectionWidth(
int column,
int width);
96 void setHorizontalScrollValue(
int value);
117 void mouseReleaseEvent(QMouseEvent *event)
override;
126 void leaveEvent(QEvent *event)
override;
129 void contextMenuEvent(QContextMenuEvent *event)
override;
132 void wheelEvent(QWheelEvent *event)
override;
138 void drawRow(QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
154 QPersistentModelIndex drag_index_;
158 QWidget *right_divider_;
160 void applyColumnVisibility();
The main packet list view for displaying captured packets.
Definition packet_list.h:51
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:317
void drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Draws the hover highlight (which spans every pane) and the "packet separator" line,...
Definition pinned_row_view.cpp:241
void mousePressEvent(QMouseEvent *event) override
Selects the clicked pinned row in this view's own selection model (linked to the primary packet list'...
Definition pinned_row_view.cpp:147
void updateGeometries() override
Widens this view's horizontal scroll range to the primary view's. QTreeView derives the range from it...
Definition pinned_row_view.cpp:119
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:56
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:133
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:182
PacketList * packetList() const
The primary PacketList this view mirrors rows for. Used by MultiColorPacketDelegate to compute the sc...
Definition pinned_row_view.h:83