summaryrefslogtreecommitdiff
path: root/ui/qt/main_window.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-08-31 12:24:48 -0700
committerGerald Combs <gerald@wireshark.org>2015-08-31 23:06:09 +0000
commit377d215e0fd1022a093fa44b32f396948e70c119 (patch)
tree4a798c715645ec953e1ae447ddec555c3f509bbb /ui/qt/main_window.cpp
parente9614ad7bad3078876c370a5e2f697fb61664322 (diff)
downloadwireshark-377d215e0fd1022a093fa44b32f396948e70c119.tar.gz
Convert the MTP3 stats to new "generic stat API".
Convert both the MTP3 statistics and summary. As with the GSM stats this is mostly untested. Change-Id: I7af8d5f21c8161dc95f7f2c710f32364b6f6a431 Reviewed-on: https://code.wireshark.org/review/10338 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/main_window.cpp')
-rw-r--r--ui/qt/main_window.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp
index 42ffbd377e..b7e4ad44d5 100644
--- a/ui/qt/main_window.cpp
+++ b/ui/qt/main_window.cpp
@@ -1991,6 +1991,7 @@ static QList<register_stat_group_t> menu_groups = QList<register_stat_group_t>()
<< REGISTER_STAT_GROUP_TELEPHONY_ANSI
<< REGISTER_STAT_GROUP_TELEPHONY_GSM
<< REGISTER_STAT_GROUP_TELEPHONY_LTE
+ << REGISTER_STAT_GROUP_TELEPHONY_MTP3
<< REGISTER_STAT_GROUP_TELEPHONY_SCTP
<< REGISTER_TOOLS_GROUP_UNSORTED;
@@ -2016,6 +2017,9 @@ void MainWindow::addMenuActions(QList<QAction *> &actions, int menu_group)
case REGISTER_STAT_GROUP_TELEPHONY_GSM:
main_ui_->menuGSM->addAction(action);
break;
+ case REGISTER_STAT_GROUP_TELEPHONY_MTP3:
+ main_ui_->menuMTP3->addAction(action);
+ break;
case REGISTER_TOOLS_GROUP_UNSORTED:
{
// Allow the creation of submenus. Mimics the behavor of
@@ -2078,6 +2082,9 @@ void MainWindow::removeMenuActions(QList<QAction *> &actions, int menu_group)
case REGISTER_STAT_GROUP_TELEPHONY_GSM:
main_ui_->menuGSM->removeAction(action);
break;
+ case REGISTER_STAT_GROUP_TELEPHONY_MTP3:
+ main_ui_->menuMTP3->removeAction(action);
+ break;
case REGISTER_TOOLS_GROUP_UNSORTED:
{
// Allow removal of submenus.
@@ -2108,6 +2115,7 @@ void MainWindow::addDynamicMenus()
{
// Manual additions
wsApp->addDynamicMenuGroupItem(REGISTER_STAT_GROUP_TELEPHONY_GSM, main_ui_->actionTelephonyGsmMapSummary);
+ wsApp->addDynamicMenuGroupItem(REGISTER_STAT_GROUP_TELEPHONY_MTP3, main_ui_->actionTelephonyMtp3Summary);
// Fill in each menu
foreach (register_stat_group_t menu_group, menu_groups) {
@@ -2124,6 +2132,12 @@ void MainWindow::addDynamicMenus()
if (wsApp->dynamicMenuGroupItems(REGISTER_STAT_GROUP_TELEPHONY_ANSI).length() > 0) {
main_ui_->actionTelephonyANSIPlaceholder->setVisible(false);
}
+ if (wsApp->dynamicMenuGroupItems(REGISTER_STAT_GROUP_TELEPHONY_GSM).length() > 0) {
+ main_ui_->actionTelephonyGSMPlaceholder->setVisible(false);
+ }
+ if (wsApp->dynamicMenuGroupItems(REGISTER_STAT_GROUP_TELEPHONY_MTP3).length() > 0) {
+ main_ui_->actionTelephonyMTP3Placeholder->setVisible(false);
+ }
}
void MainWindow::reloadDynamicMenus()