aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/packet_list.h
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2015-02-18 13:30:06 +0100
committerMichal Labedzki <michal.labedzki@tieto.com>2015-07-20 21:21:28 +0000
commit1e487664bc2a902dbfd8d2d3ef9ddcd09a4b3d12 (patch)
tree98e7d8e8ae2724be9f0ce966012292eab2d90b25 /ui/qt/packet_list.h
parent7e13cacb9b589662a1f748c362a70e753ae4a9db (diff)
Qt: Add option to back white line separator for packet list items
This uses one line (on bottom) of items and makes it white. Seen in Wireshark on some configurations of GTK 2 on Linux, so backports it to Qt for people who like it. In my opinion it helps if you use packet list background colors for frames and you have a lot of following frames with the same background color. Bug: 10954 Change-Id: Id8f58520d7224db4eb8181bcc04febd7416a8578 Reviewed-on: https://code.wireshark.org/review/7293 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'ui/qt/packet_list.h')
-rw-r--r--ui/qt/packet_list.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/packet_list.h b/ui/qt/packet_list.h
index ae7b751281..67b9022d65 100644
--- a/ui/qt/packet_list.h
+++ b/ui/qt/packet_list.h
@@ -32,6 +32,7 @@
#include <QMenu>
#include <QTime>
#include <QTreeView>
+#include <QPainter>
class OverlayScrollBar;
@@ -81,6 +82,7 @@ protected:
protected slots:
void rowsInserted(const QModelIndex &parent, int start, int end);
+ void drawRow(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const;
private:
PacketListModel *packet_list_model_;