aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/packet_list.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-07-09 16:47:11 -0700
committerGerald Combs <gerald@wireshark.org>2015-07-13 02:36:41 +0000
commitc305f08921feb30f5411bc8f8e0b01ebf1cfbe2e (patch)
tree5cd54f8b6c1fc7efecf347f9a389b680eaf18cdb /ui/qt/packet_list.h
parent494457d3b55630595909d4db883e93f2d3f57986 (diff)
PacketList column fixes.
Add a columnsChanged slot to PacketList and move the column update code from redrawVisiblePackets there. Make sure we call packet_list_model_->recreateVisibleRows, which should fix the behavior described in bug 11324. Call columnsChanged when we, uh, change columns. Add a sectionMoved slot to handle column reordering. Don't rebuild the column list when we update the widgets in the column preferences frame. Do enable and disable the "remove" button as needed. Try to keep the user from removing all of the columns in both the packet list and column preferences. Left as an exercise for the reader: The GTK+ UI also fails when you remove all of the columns via the preferences: packet_list.c:377:packet_list_sort_column: assertion failed: (col) Bug: 11324 Change-Id: Id58cf98e42cbda9aa2fc370ea06b8bcc6098c8ca Reviewed-on: https://code.wireshark.org/review/9591 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
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 de08a228be..715a4ebb04 100644
--- a/ui/qt/packet_list.h
+++ b/ui/qt/packet_list.h
@@ -135,6 +135,7 @@ public slots:
void setTimeReference();
void unsetAllTimeReferences();
void redrawVisiblePackets();
+ void columnsChanged();
void applyRecentColumnWidths();
private slots:
@@ -142,6 +143,7 @@ private slots:
void headerMenuTriggered();
void columnVisibilityTriggered();
void sectionResized(int col, int, int new_width);
+ void sectionMoved(int, int, int);
void vScrollBarActionTriggered(int);
};