forked from osmocom/wireshark
Qt: make RTP stream analysis columns sortable
While we are at it, let's sort the rows in ascending order also in RTP stream dialog Bug: 12405 Change-Id: Icf96fa071d5d49bcd1c3673c2a5e55b51b359eaa Reviewed-on: https://code.wireshark.org/review/15493 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
20650243d3
commit
c564715db1
|
@ -280,10 +280,12 @@ RtpAnalysisDialog::RtpAnalysisDialog(QWidget &parent, CaptureFile &cf, struct _r
|
|||
stream_ctx_menu_.addAction(ui->actionSaveGraph);
|
||||
ui->forwardTreeWidget->installEventFilter(this);
|
||||
ui->forwardTreeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
ui->forwardTreeWidget->header()->setSortIndicator(0, Qt::AscendingOrder);
|
||||
connect(ui->forwardTreeWidget, SIGNAL(customContextMenuRequested(QPoint)),
|
||||
SLOT(showStreamMenu(QPoint)));
|
||||
ui->reverseTreeWidget->installEventFilter(this);
|
||||
ui->reverseTreeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
ui->reverseTreeWidget->header()->setSortIndicator(0, Qt::AscendingOrder);
|
||||
connect(ui->reverseTreeWidget, SIGNAL(customContextMenuRequested(QPoint)),
|
||||
SLOT(showStreamMenu(QPoint)));
|
||||
connect(ui->streamGraph, SIGNAL(mousePress(QMouseEvent*)),
|
||||
|
|
|
@ -58,6 +58,9 @@
|
|||
<property name="itemsExpandable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="sortingEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="expandsOnDoubleClick">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
|
@ -112,6 +115,9 @@
|
|||
<property name="itemsExpandable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="sortingEnabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<attribute name="title">
|
||||
<string>Reverse</string>
|
||||
</attribute>
|
||||
|
|
|
@ -235,6 +235,7 @@ RtpStreamDialog::RtpStreamDialog(QWidget &parent, CaptureFile &cf) :
|
|||
ctx_menu_.addAction(ui->actionCopyAsYaml);
|
||||
ctx_menu_.addAction(ui->actionAnalyze);
|
||||
ui->streamTreeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
ui->streamTreeWidget->header()->setSortIndicator(0, Qt::AscendingOrder);
|
||||
connect(ui->streamTreeWidget, SIGNAL(customContextMenuRequested(QPoint)),
|
||||
SLOT(showStreamMenu(QPoint)));
|
||||
|
||||
|
|
Loading…
Reference in New Issue