diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-08-24 12:33:49 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-08-26 14:47:07 +0000 |
commit | f7e9a795a8575c8170346e878b898efe1e5be304 (patch) | |
tree | 917a6986675583f95d0b1b51f7f615bce948b2a0 /ui/qt/follow_stream_dialog.cpp | |
parent | 8b4ff246b5219f481c36cb6ef865213bdb162176 (diff) | |
download | wireshark-f7e9a795a8575c8170346e878b898efe1e5be304.tar.gz |
Add per-dialog progress frames.
Add ProgressFame::addToButtonBox, which violates the UX guidelines on
every platform we support by inserting a ProgressFrame into a
QDialogButtonBox.
Call addToButtonBox in the constructors of a bunch of dialogs.
Change-Id: I33ac5fd7a976ee6e0527de569a5c4b528980dae1
Reviewed-on: https://code.wireshark.org/review/10242
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/follow_stream_dialog.cpp')
-rw-r--r-- | ui/qt/follow_stream_dialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp index 4059526288..39655f2203 100644 --- a/ui/qt/follow_stream_dialog.cpp +++ b/ui/qt/follow_stream_dialog.cpp @@ -49,6 +49,7 @@ #include "ui/follow.h" +#include "progress_frame.h" #include "qt_ui_utils.h" #include <QKeyEvent> @@ -104,6 +105,8 @@ FollowStreamDialog::FollowStreamDialog(QWidget &parent, CaptureFile &cf, follow_ b_save_ = ui->buttonBox->addButton(tr("Save as" UTF8_HORIZONTAL_ELLIPSIS), QDialogButtonBox::ActionRole); connect(b_save_, SIGNAL(clicked()), this, SLOT(saveAs())); + ProgressFrame::addToButtonBox(ui->buttonBox, &parent); + connect(ui->buttonBox, SIGNAL(helpRequested()), this, SLOT(helpButton())); connect(ui->teStreamContent, SIGNAL(mouseMovedToTextCursorPosition(int)), this, SLOT(fillHintLabel(int))); |