aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/widgets/syntax_line_edit.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-12-24 11:11:20 -0600
committerAnders Broman <a.broman58@gmail.com>2018-12-24 23:30:03 +0000
commitc899c002afc3c10e9cbe137677af3996340972af (patch)
tree899ad2cff53ec299de2a992b3a0a8e8a210d5a0f /ui/qt/widgets/syntax_line_edit.cpp
parent7facbfdaa525e2137ce193f6054c7fe6066b18c7 (diff)
Qt: Switch ui/qt/widgets/*.cpp to new-style signals and slots.
Switch our remaining home-grown widgets (which excludes QCustomPlot) to new-style signals and slots. Change-Id: Icbe2d25d4ddad11b66f4c1369fa0da89c213ba72 Reviewed-on: https://code.wireshark.org/review/31190 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/widgets/syntax_line_edit.cpp')
-rw-r--r--ui/qt/widgets/syntax_line_edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/widgets/syntax_line_edit.cpp b/ui/qt/widgets/syntax_line_edit.cpp
index e241c86b7b..ae4e082548 100644
--- a/ui/qt/widgets/syntax_line_edit.cpp
+++ b/ui/qt/widgets/syntax_line_edit.cpp
@@ -66,8 +66,8 @@ void SyntaxLineEdit::setCompleter(QCompleter *c)
// Completion items are not guaranteed to be sorted (recent filters +
// fields), so no setModelSorting.
completer_->setMaxVisibleItems(max_completion_items_);
- QObject::connect(completer_, SIGNAL(activated(QString)),
- this, SLOT(insertFieldCompletion(QString)));
+ QObject::connect(completer_, static_cast<void (QCompleter::*)(const QString &)>(&QCompleter::activated),
+ this, &SyntaxLineEdit::insertFieldCompletion);
}
void SyntaxLineEdit::setSyntaxState(SyntaxState state) {