diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-10-08 11:31:42 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-10-08 20:14:35 +0000 |
commit | f274902be581b52db68c66f4864d85b7ea8fefe4 (patch) | |
tree | ec178b5a5e9ece6c00d7ea78f8005b085b4cf992 /ui/qt/rtp_player_dialog.cpp | |
parent | 03d853400c61f6784e6ccf37fe5a5ba7f7da312a (diff) |
Qt: Add a play button to the RTP Stream Analysis dialog.
Rename the "Play Call" button to "Play Streams". Move the button
creation code to a common routine. Use it to add a "Play Streams" button
to the RTP Stream Analysis, similar to the GTK+ UI.
Don't restrict RTP to IPv[46] as suggested by Michal. I don't have any
RTP-over-Bluetooth captures so I can't test this directly.
Change-Id: I4703cac1d5bf5b3ff0255d36da2c5164feb0547d
Reviewed-on: https://code.wireshark.org/review/10888
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/rtp_player_dialog.cpp')
-rw-r--r-- | ui/qt/rtp_player_dialog.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/qt/rtp_player_dialog.cpp b/ui/qt/rtp_player_dialog.cpp index 716824f033..1b485df86b 100644 --- a/ui/qt/rtp_player_dialog.cpp +++ b/ui/qt/rtp_player_dialog.cpp @@ -294,6 +294,16 @@ void RtpPlayerDialog::addRtpStream(struct _rtp_stream_info *rtp_stream) // RTP_STREAM_DEBUG("adding stream %s to layout, %u packets, start %u", stream_key.toUtf8().constData(), rtp_stream->packet_count, rtp_stream->start_fd->num); } +QPushButton *RtpPlayerDialog::addPlayerButton(QDialogButtonBox *button_box) +{ + if (!button_box) return NULL; + + QPushButton *player_button; + player_button = button_box->addButton(tr("Play Streams"), QDialogButtonBox::ApplyRole); + player_button->setIcon(StockIcon("media-playback-start")); + return player_button; +} + void RtpPlayerDialog::showEvent(QShowEvent *) { QList<int> split_sizes = ui->splitter->sizes(); |