From f274902be581b52db68c66f4864d85b7ea8fefe4 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 8 Oct 2015 11:31:42 -0700 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs --- ui/qt/rtp_player_dialog.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ui/qt/rtp_player_dialog.cpp') 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 split_sizes = ui->splitter->sizes(); -- cgit v1.2.3