diff options
author | Dario Lombardo <lomato@gmail.com> | 2019-06-14 14:05:24 +0200 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2019-06-15 09:40:04 +0000 |
commit | fe62cb6a14f6a1f1eeb7f362ff98987529e9e7ed (patch) | |
tree | cd26f67c58b331dad1a5ba2e26a4cdeab2c8fbb6 /ui/qt/widgets | |
parent | cf9817b1ed6c041302481a3e7a35e5b0faa8131d (diff) |
Qt: fix the constructor call in display_filter_edit.
Fix the error:
../ui/qt/widgets/display_filter_edit.cpp:618:31: error: no matching constructor for initialization of 'QAction'
QAction * andAction = new QAction(tr("...and selected"));
^ ~~~~~~~~~~~~~~~~~~~~~
[...]
4 errors generated.
Change-Id: I0c37a0a2ea021a4d3dcd6c2a66039bf4625ec7d9
Reviewed-on: https://code.wireshark.org/review/33595
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/widgets')
-rw-r--r-- | ui/qt/widgets/display_filter_edit.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/qt/widgets/display_filter_edit.cpp b/ui/qt/widgets/display_filter_edit.cpp index d19adc9b07..4a615dfac6 100644 --- a/ui/qt/widgets/display_filter_edit.cpp +++ b/ui/qt/widgets/display_filter_edit.cpp @@ -615,19 +615,19 @@ void DisplayFilterEdit::createFilterTextDropMenu(QDropEvent *event, QString filt QMenu applyMenu(this); - QAction * andAction = new QAction(tr("...and selected")); + QAction * andAction = new QAction(tr("...and selected"), this); andAction->setData(QString("&& %1").arg(filterText)); connect(andAction, &QAction::triggered, this, &DisplayFilterEdit::dropActionMenuEvent); - QAction * orAction = new QAction(tr("...or selected")); + QAction * orAction = new QAction(tr("...or selected"), this); orAction->setData(QString("|| %1").arg(filterText)); connect(orAction, &QAction::triggered, this, &DisplayFilterEdit::dropActionMenuEvent); - QAction * andNotAction = new QAction(tr("...and not selected")); + QAction * andNotAction = new QAction(tr("...and not selected"), this); andNotAction->setData(QString("&& !(%1)").arg(filterText)); connect(andNotAction, &QAction::triggered, this, &DisplayFilterEdit::dropActionMenuEvent); - QAction * orNotAction = new QAction(tr("...or not selected")); + QAction * orNotAction = new QAction(tr("...or not selected"), this); orNotAction->setData(QString("|| !(%1)").arg(filterText)); connect(orNotAction, &QAction::triggered, this, &DisplayFilterEdit::dropActionMenuEvent); |