From a8faa04234a5ac07c37da41d42ed943e8ebf5406 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Wed, 8 Jul 2015 15:44:04 -0700 Subject: Qt: Add dynamic menu support. Generalize the dynamic menu code and make it possible to connect multiple types of actions to their corresponding slots. Change-Id: Ib915ad5a666310e2a6e366fada006336820d1653 Reviewed-on: https://code.wireshark.org/review/9568 Reviewed-by: Gerald Combs --- ui/qt/funnel_statistics.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/qt/funnel_statistics.h') diff --git a/ui/qt/funnel_statistics.h b/ui/qt/funnel_statistics.h index ba8e2bf31d..19778cef6e 100644 --- a/ui/qt/funnel_statistics.h +++ b/ui/qt/funnel_statistics.h @@ -44,6 +44,7 @@ public: void reloadPackets(); void emitApplyDisplayFilter(); void emitOpenCaptureFile(QString &cf_path, QString &filter); + static const QString &actionName() { return action_name_; } signals: void setDisplayFilter(const QString &filter); @@ -55,6 +56,7 @@ public slots: void displayFilterTextChanged(const QString &filter); private: + static const QString action_name_; struct _funnel_ops_t *funnel_ops_; CaptureFile &capture_file_; QByteArray display_filter_; -- cgit v1.2.3