diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-02-23 17:56:14 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-03-05 16:45:04 +0000 |
commit | f2b35a180f12575bcd4198add4a6478b4ce41802 (patch) | |
tree | a14fcab1ca616169b1649f8192250bf0f9925130 /ui/qt/proto_tree.cpp | |
parent | a065fefe689a1c839fc74e5b253212f0efddfced (diff) |
Qt: Add extra related packet indicator types.
Add the ability to set frame number types: none, request, or response.
Use the types to draw different related packet indicators in the packet
list.
Track the conversation in PacketListRecord. Use it to draw dashed lines
for unrelated frames.
Set frame number types for DNS and ICMP.
Instead of drawing a transparent QImage, alpha blend our foreground
color and draw directly in our painter. Blend more toward the foreground
color.
Add FRAMENUM_TYPE to checkAPIs.
Change-Id: I2495945bb436413e05d6ec697184a0b4fd5ad214
Reviewed-on: https://code.wireshark.org/review/7436
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/proto_tree.cpp')
-rw-r--r-- | ui/qt/proto_tree.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp index 992e78b5c5..c50a05fc93 100644 --- a/ui/qt/proto_tree.cpp +++ b/ui/qt/proto_tree.cpp @@ -107,7 +107,8 @@ proto_tree_draw_node(proto_node *node, gpointer data) item->setData(0, Qt::FontRole, font); if (fi->hfinfo->type == FT_FRAMENUM) { - proto_tree->emitRelatedFrame(fi->value.value.uinteger); + ft_framenum_type_t framenum_type = (ft_framenum_type_t)GPOINTER_TO_INT(fi->hfinfo->strings); + proto_tree->emitRelatedFrame(fi->value.value.uinteger, framenum_type); } } } @@ -294,9 +295,9 @@ void ProtoTree::fillProtocolTree(proto_tree *protocol_tree) { proto_tree_children_foreach(protocol_tree, proto_tree_draw_node, invisibleRootItem()); } -void ProtoTree::emitRelatedFrame(int related_frame) +void ProtoTree::emitRelatedFrame(int related_frame, ft_framenum_type_t framenum_type) { - emit relatedFrame(related_frame); + emit relatedFrame(related_frame, framenum_type); } void ProtoTree::updateSelectionStatus(QTreeWidgetItem* item) { |