aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Knall <rknall@gmail.com>2019-09-03 22:18:06 +0200
committerRoland Knall <rknall@gmail.com>2019-09-04 07:43:41 +0000
commitf0c0e1c8214e59fbf17614c7c2d35dc6e4b96f5b (patch)
treee3811a9cefaec16a834b5749203578789cca0427
parent6b74b3f82d0f9623b2f6d29a7ca5b121804a593d (diff)
Qt: Fix override declarations for PacketList
Fix missing override declarations for packetlist header information Change-Id: If9d1cbcae20b5d098ff7b74cd263a6a21a296598 Reviewed-on: https://code.wireshark.org/review/34446 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
-rw-r--r--ui/qt/packet_list.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/ui/qt/packet_list.h b/ui/qt/packet_list.h
index 62d43a35bb..52066eb73e 100644
--- a/ui/qt/packet_list.h
+++ b/ui/qt/packet_list.h
@@ -70,18 +70,19 @@ public:
frame_data * getFDataForRow(int row) const;
protected:
- void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected);
- void contextMenuEvent(QContextMenuEvent *event);
- void timerEvent(QTimerEvent *event);
- void paintEvent(QPaintEvent *event);
- virtual void mousePressEvent (QMouseEvent *event);
- virtual void mouseReleaseEvent (QMouseEvent *event);
- virtual void mouseMoveEvent (QMouseEvent *event);
- virtual void resizeEvent(QResizeEvent *event);
+ void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) override;
+ virtual void contextMenuEvent(QContextMenuEvent *event) override;
+ void timerEvent(QTimerEvent *event) override;
+ void paintEvent(QPaintEvent *event) override;
+ virtual void mousePressEvent (QMouseEvent *event) override;
+ virtual void mouseReleaseEvent (QMouseEvent *event) override;
+ virtual void mouseMoveEvent (QMouseEvent *event) override;
+ virtual void resizeEvent(QResizeEvent *event) override;
protected slots:
- void rowsInserted(const QModelIndex &parent, int start, int end);
- void drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
+ void rowsInserted(const QModelIndex &parent, int start, int end) override;
+ virtual void drawRow(QPainter *painter, const QStyleOptionViewItem &option,
+ const QModelIndex &index) const override;
private:
PacketListModel *packet_list_model_;
@@ -117,7 +118,7 @@ private:
void setFrameReftime(gboolean set, frame_data *fdata);
void setColumnVisibility();
- int sizeHintForColumn(int column) const;
+ int sizeHintForColumn(int column) const override;
void setRecentColumnWidth(int column);
void drawCurrentPacket();
void applyRecentColumnWidths();