aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/funnel_statistics.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-07-08 15:44:04 -0700
committerGerald Combs <gerald@wireshark.org>2015-07-09 00:05:51 +0000
commita8faa04234a5ac07c37da41d42ed943e8ebf5406 (patch)
treeb661f5ab0244abf0bb8a7d9ec712b25a7000b2d2 /ui/qt/funnel_statistics.h
parent131e0ab7ea461d519f0fbe80b03aa6bc99b9d452 (diff)
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 <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/funnel_statistics.h')
-rw-r--r--ui/qt/funnel_statistics.h2
1 files changed, 2 insertions, 0 deletions
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_;