diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-07-09 10:50:51 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-07-11 20:52:10 +0000 |
commit | d1d88f575d58bad338e5760eac62c981cf4753a3 (patch) | |
tree | eef0e833a31bcbbebf6bc3541af392489f578ac4 /ui/qt/wireshark_application.cpp | |
parent | 14f943403aa57e2bfaa77df28a4ac23670e474b3 (diff) |
Add plumbing for stat commands ("-z ...").
Trigger dialog creation by passing a method name to
QMetaObject::invokeMethod. I'm not entirely sure this is sane but it
seems to work OK. Move getopt processing further down in the main initialization sequence
to more closely match GTK+ and allow for stat command registration.
Change-Id: I5cd5375fa71dbadac69d528b2ba3bb13598dc3f6
Reviewed-on: https://code.wireshark.org/review/2964
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/wireshark_application.cpp')
-rw-r--r-- | ui/qt/wireshark_application.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/qt/wireshark_application.cpp b/ui/qt/wireshark_application.cpp index eaa0ba24f7..cda29e035e 100644 --- a/ui/qt/wireshark_application.cpp +++ b/ui/qt/wireshark_application.cpp @@ -617,6 +617,11 @@ void WiresharkApplication::emitAppSignal(AppSignal signal) } } +void WiresharkApplication::emitStatCommandSignal(const QString &menu_path, const char *arg, void *userdata) +{ + emit openStatCommandDialog(menu_path, arg, userdata); +} + void WiresharkApplication::allSystemsGo() { QString display_filter = NULL; |