aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/traffic_table_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-08-24 12:33:49 -0700
committerGerald Combs <gerald@wireshark.org>2015-08-26 14:47:07 +0000
commitf7e9a795a8575c8170346e878b898efe1e5be304 (patch)
tree917a6986675583f95d0b1b51f7f615bce948b2a0 /ui/qt/traffic_table_dialog.cpp
parent8b4ff246b5219f481c36cb6ef865213bdb162176 (diff)
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/traffic_table_dialog.cpp')
-rw-r--r--ui/qt/traffic_table_dialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/qt/traffic_table_dialog.cpp b/ui/qt/traffic_table_dialog.cpp
index bc4af92086..dd75b0c429 100644
--- a/ui/qt/traffic_table_dialog.cpp
+++ b/ui/qt/traffic_table_dialog.cpp
@@ -30,6 +30,7 @@
#include "ui/recent.h"
//#include "ui/tap-tcp-stream.h"
+#include "progress_frame.h"
#include "wireshark_application.h"
#include <QCheckBox>
@@ -119,6 +120,11 @@ void TrafficTableDialog::fillTypeMenu(QList<int> &enabled_protos)
}
}
+void TrafficTableDialog::addProgressFrame(QObject *parent)
+{
+ ProgressFrame::addToButtonBox(ui->buttonBox, parent);
+}
+
QDialogButtonBox *TrafficTableDialog::buttonBox() const
{
return ui->buttonBox;