From bb7b35963508eb39c91f82ca174473908aaa9656 Mon Sep 17 00:00:00 2001 From: Moshe Kaplan Date: Sun, 25 Aug 2019 12:58:49 -0400 Subject: Add tooltip for clearing display filter Change-Id: I11f8c7ba00ffdc3028c85b1f0957bd6f95092dce Reviewed-on: https://code.wireshark.org/review/34357 Petri-Dish: Guy Harris Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/qt/widgets/display_filter_edit.cpp | 2 +- ui/qt/wireshark_en.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/qt/widgets/display_filter_edit.cpp b/ui/qt/widgets/display_filter_edit.cpp index 8c12ad2b09..50fe74f5a0 100644 --- a/ui/qt/widgets/display_filter_edit.cpp +++ b/ui/qt/widgets/display_filter_edit.cpp @@ -98,7 +98,7 @@ DisplayFilterEdit::DisplayFilterEdit(QWidget *parent, DisplayFilterEditType type if (type_ == DisplayFilterToApply) { clear_button_ = new StockIconToolButton(this, "x-filter-clear"); clear_button_->setCursor(Qt::ArrowCursor); - clear_button_->setToolTip(QString()); + clear_button_->setToolTip(tr("Clear display filter")); clear_button_->setIconSize(QSize(14, 14)); clear_button_->setStyleSheet( "QToolButton {" diff --git a/ui/qt/wireshark_en.ts b/ui/qt/wireshark_en.ts index b105fc85b3..b17fc0d10a 100644 --- a/ui/qt/wireshark_en.ts +++ b/ui/qt/wireshark_en.ts @@ -1963,6 +1963,10 @@ For example, use 1 hour to have a new file created every hour on the hour.Enter a display filter %1 + + Clear display filter + + Apply a read filter %1 -- cgit v1.2.3