diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2019-05-27 23:28:48 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2019-05-28 14:07:03 +0000 |
commit | 0933c20de8547139a7da6c965f23633a30fbbe75 (patch) | |
tree | e47da78d29ff3715d4111fb46f321c4d7b3d5b14 /tests/auto | |
parent | 1b11c4d4b634ac954f99f9c3109a40b919528ee7 (diff) |
connect() to ambiguous signals/slots: Replace static_cast with QOverload
Change-Id: I473d7a2a16509cee944a2a21b022a3f6f02cfd8d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/valgrind/callgrind/modeltest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/valgrind/callgrind/modeltest.cpp b/tests/auto/valgrind/callgrind/modeltest.cpp index c02b23bf6d..6197f632d6 100644 --- a/tests/auto/valgrind/callgrind/modeltest.cpp +++ b/tests/auto/valgrind/callgrind/modeltest.cpp @@ -85,7 +85,7 @@ ModelTestWidget::ModelTestWidget(CallgrindWidgetHandler *handler) m_format->addItem("absolute", CostDelegate::FormatAbsolute); m_format->addItem("relative", CostDelegate::FormatRelative); m_format->addItem("rel. to parent", CostDelegate::FormatRelativeToParent); - connect(m_format, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), + connect(m_format, QOverload<int>::of(&QComboBox::activated), this, &ModelTestWidget::formatChanged); h->addWidget(m_format); |