diff options
author | Gerald Combs <gerald@zing.org> | 2015-06-14 18:05:02 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-06-15 02:02:41 +0000 |
commit | 9fb6ec6c89631f2fbb5228d8f81a727f6d1fee27 (patch) | |
tree | 71b1bdcfb6e4a20b93df2c7d3642b951b9f18420 /ui/qt/preferences_dialog.h | |
parent | 6625cf5e52813985a695286aac9ca9fde55e3267 (diff) | |
download | wireshark-9fb6ec6c89631f2fbb5228d8f81a727f6d1fee27.tar.gz |
Qt: Add the ability to show preferences by module name.
Currently unused, but allows feature parity with the GTK+ UI.
Change-Id: I33e0bfb434949aabd75ecd2ed36e696731195542
Reviewed-on: https://code.wireshark.org/review/8922
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/preferences_dialog.h')
-rw-r--r-- | ui/qt/preferences_dialog.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/qt/preferences_dialog.h b/ui/qt/preferences_dialog.h index 19e51c055e..7f083da461 100644 --- a/ui/qt/preferences_dialog.h +++ b/ui/qt/preferences_dialog.h @@ -59,8 +59,11 @@ public: ppFilterExpressions }; - explicit PreferencesDialog(QWidget *parent = 0, PreferencesPane start_pane = ppAppearance); + explicit PreferencesDialog(QWidget *parent = 0); ~PreferencesDialog(); + void setPane(PreferencesPane start_pane); + void setPane(const QString module_name); + const QList<WiresharkApplication::AppSignal> appSignals() const { return app_signals_; } protected: @@ -72,6 +75,7 @@ private: void updateItem(QTreeWidgetItem &item); Ui::PreferencesDialog *pd_ui_; + QHash<PreferencesDialog::PreferencesPane, QTreeWidgetItem *>prefs_pane_to_item_; int cur_pref_type_; QLineEdit *cur_line_edit_; QString saved_string_pref_; |