diff options
author | Roland Knall <rknall@gmail.com> | 2017-06-21 17:19:36 -0400 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2017-06-27 15:14:56 +0000 |
commit | 1426c44281c2b266d7159340f7e75afc56141b18 (patch) | |
tree | b0fdf4f64e89559a216d0511e072b65cb0694d42 /ui/qt/filter_expression_frame.h | |
parent | 6bd87bdd5d8f114768f5d9777d7e1713c017e488 (diff) | |
download | wireshark-1426c44281c2b266d7159340f7e75afc56141b18.tar.gz |
Qt: Context menu for toolbar filter buttons
Adds a context menu for the toolbar filter buttons, which allows for
opening the preference for the filter buttons, as well as direct edit,
removal and disable functionality
Change-Id: I5f2d132737c77804cf22834574dfe3c02f85fbdf
Reviewed-on: https://code.wireshark.org/review/22327
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/filter_expression_frame.h')
-rw-r--r-- | ui/qt/filter_expression_frame.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/filter_expression_frame.h b/ui/qt/filter_expression_frame.h index 2d65f9a596..63293bc241 100644 --- a/ui/qt/filter_expression_frame.h +++ b/ui/qt/filter_expression_frame.h @@ -38,6 +38,7 @@ public: ~FilterExpressionFrame(); void addExpression(const QString filter_text); + void editExpression(int exprIdx); signals: void showPreferencesDialog(PreferencesDialog::PreferencesPane start_pane); @@ -49,10 +50,13 @@ protected: private: Ui::FilterExpressionFrame *ui; + int editExpression_; + private slots: void updateWidgets(); void on_filterExpressionPreferencesPushButton_clicked(); void on_labelLineEdit_textChanged(const QString); + void on_displayFilterLineEdit_textChanged(const QString); void on_buttonBox_accepted(); void on_buttonBox_rejected(); }; |