diff options
author | Gerald Combs <gerald@wireshark.org> | 2021-01-17 10:38:27 -0800 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-01-18 16:56:20 +0000 |
commit | 85a793892520c0f2152bc26c1287236762c69e85 (patch) | |
tree | 2315f579ccfc270351fbb34193bc000ea62b131d /ui/qt/lte_mac_statistics_dialog.cpp | |
parent | f504af93f371f4d7902749fcfdf65a1ab272f133 (diff) |
Qt+tools: Fix most of our lupdate warnings.
Fix various warnings with the following changes:
Pass a list of include directories to lupdate. Fixes:
ui/qt/proto_tree.cpp:57: Qualifying with unknown namespace/class ::ProtoTree
and similar warnings.
Use QT_TRANSLATE_NOOP instead of QT_TR_NOOP. Fixes:
ui/qt/lte_rlc_statistics_dialog.cpp:993: tr() cannot be called without context
ui/qt/lte_mac_statistics_dialog.cpp:911: tr() cannot be called without context
ui/qt/font_color_preferences_frame.cpp:28: tr() cannot be called without context
ui/qt/font_color_preferences_frame.cpp:29: tr() cannot be called without context
ui/qt/font_color_preferences_frame.cpp:30: Discarding unconsumed meta data
Add Q_OBJECT to the class definition. Fixes:
ui/qt/models/filter_list_model.cpp:120: Class 'FilterListModel' lacks Q_OBJECT macro
The following warnings were not fixed. This might require moving IOGraph
to its own file:
ui/qt/io_graph_dialog.cpp:320: Qualifying with unknown namespace/class ::IOGraphDialog
ui/qt/io_graph_dialog.cpp:555: Qualifying with unknown namespace/class ::IOGraphDialog
ui/qt/io_graph_dialog.cpp:1059: Qualifying with unknown namespace/class ::IOGraphDialog
ui/qt/io_graph_dialog.cpp:1485: Qualifying with unknown namespace/class ::IOGraphDialog
Diffstat (limited to 'ui/qt/lte_mac_statistics_dialog.cpp')
-rw-r--r-- | ui/qt/lte_mac_statistics_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/lte_mac_statistics_dialog.cpp b/ui/qt/lte_mac_statistics_dialog.cpp index 73087dbb5d..84452e7a36 100644 --- a/ui/qt/lte_mac_statistics_dialog.cpp +++ b/ui/qt/lte_mac_statistics_dialog.cpp @@ -908,7 +908,7 @@ lte_mac_statistics_init(const char *args, void*) { static stat_tap_ui lte_mac_statistics_ui = { REGISTER_STAT_GROUP_TELEPHONY_LTE, - QT_TR_NOOP("MAC Statistics"), + QT_TRANSLATE_NOOP("LteMacStatisticsDialog", "MAC Statistics"), "mac-lte,stat", lte_mac_statistics_init, 0, |